- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
29 lines
1.4 KiB
Go
29 lines
1.4 KiB
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "speedtest-cli",
|
|
Description: "Command line interface for testing internet bandwidth using speedtest.net",
|
|
Options: []spec.Option{
|
|
{Name: "--help", Description: "Show this help message and exit"},
|
|
{Name: "--no-download", Description: "Do not perform download test"},
|
|
{Name: "--no-upload", Description: "Do not perform upload test"},
|
|
{Name: "--single", Description: "Suppress verbose output, only show basic information"},
|
|
{Name: "--csv", Description: "Single character delimiter to use in CSV output. Default ','"},
|
|
{Name: "--csv-header", Description: "Print CSV headers"},
|
|
{Name: "--json", Description: "Display a list of speedtest.net servers sorted by distance"},
|
|
{Name: "--server", Description: "Specify a server ID to test against. Can be supplied multiple times"},
|
|
{Name: "--exclude", Description: "Exclude a server from selection. Can be supplied multiple times"},
|
|
{Name: "--mini", Description: "URL for the Speedtest Mini server"},
|
|
{Name: "--source", Description: "Source IP address to bind to"},
|
|
{Name: "--timeout", Description: "HTTP timeout in seconds. Default 10"},
|
|
{Name: "--secure", Description: "Use HTTPS instead of HTTP when communicating with speedtest.net operated servers"},
|
|
{Name: "--no-pre-allocate", Description: "Show the version number and exit"},
|
|
},
|
|
})
|
|
}
|