Files
iris-context/commands/sys/speedtest_cli.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

29 lines
1.4 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "speedtest-cli",
Description: "Command line interface for testing internet bandwidth using speedtest.net",
Options: []core.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"},
},
})
}