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
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+40
View File
@@ -0,0 +1,40 @@
package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "locust",
Description: "Show program",
Options: []core.Option{
{Name: "-v", Description: "Show program's version number and exit"},
{Name: "-h", Description: "Show this help message and exit"},
{Name: "-f", Description: "Show program's version number and exit"},
{Name: "--config", Description: "Config file path"},
{Name: "-H", Description: "Host to load test in the following format: http://10.21.32.33"},
{Name: "-u", Description: "Stop after the specified amount of time, e.g. (300s, 20m, 3h, 1h30m, etc.)"},
{Name: "-l", Description: "Show list of possible User classes and exit"},
{Name: "--web-host", Description: "Host to bind the web interface to. Defaults to '*' (all interfaces)"},
{Name: "-P", Description: "Port on which to run web host"},
{Name: "--headless", Description: "Disable the web interface, and start the test immediately"},
{Name: "--autostart", Description: "Starts the test immediately (without disabling the web UI)"},
{Name: "--autoquit", Description: "Quits Locust entirely, X seconds after the run is finished"},
{Name: "--web-auth", Description: "Turn on Basic Auth for the web interface. e.g. username:password"},
{Name: "--tls-cert", Description: "Optional path to TLS certificate to use to serve over HTTPS"},
{Name: "--tls-key", Description: "Optional path to TLS private key to use to serve over HTTPS"},
{Name: "--class-picker", Description: "Set locust to run in distributed mode with this process as master"},
{Name: "--master-bind-host", Description: "Interfaces (hostname, ip) that locust master should bind to"},
{Name: "--master-bind-port", Description: "Port that locust master should bind to"},
{Name: "--expect-workers", Description: "Set locust to run in distributed mode with this process as worker"},
{Name: "--master-host", Description: "Show list of possible User classes and exit"},
{Name: "--csv", Description: "Store current request stats to files in CSV format"},
{Name: "--csv-full-history", Description: "Print stats in the console"},
{Name: "--only-summary", Description: "Only print the summary stats"},
{Name: "--reset-stats", Description: "Store HTML report to file path specified"},
{Name: "--skip-log-setup", Description: "Choose between DEBUG/INFO/WARNING/ERROR/CRITICAL. Default is INFO"},
{Name: "--logfile", Description: "Path to log file. If not set, log will go to stderr"},
},
})
}