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
+49
View File
@@ -0,0 +1,49 @@
package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "newman",
Description: "Newman is a command-line collection runner for Postman",
Subcommands: []core.Subcommand{
{Name: "run", Description: "Initiate a Postman Collection run from a given URL or path"},
{Name: "help", Description: "Display help for command"},
},
Options: []core.Option{
{Name: "-e", Description: "Specify a URL or path to a Postman Environment"},
{Name: "-g", Description: "Specify a URL or path to a file containing Postman Globals"},
{Name: "-r", Description: "Specify the reporters to use for this run"},
{Name: "-n", Description: "Define the number of iterations to run"},
{Name: "-d", Description: "Specify a data file to use for iterations (either JSON or CSV)"},
{Name: "--folder", Description: "Exports the final environment to a file after completing the run"},
{Name: "--export-globals", Description: "Exports the final globals to a file after completing the run"},
{Name: "--export-collection", Description: "Exports the executed collection to a file after completing the run"},
{Name: "--postman-api-key", Description: "API Key used to load the resources from the Postman API"},
{Name: "--bail", Description: "Prevents Newman from automatically following 3XX redirect responses"},
{Name: "-x", Description: "Specify whether or not to override the default exit code for the current run"},
{Name: "--silent", Description: "Prevents Newman from showing output to CLI"},
{Name: "--disable-unicode", Description: "Forces Unicode compliant symbols to be replaced by their plain text equivalents"},
{Name: "--color", Description: "Enable/Disable colored output (auto|on|off)"},
{Name: "--delay-request", Description: "Specify the extent of delay between requests (milliseconds)"},
{Name: "--timeout", Description: "Specify a timeout for collection run (milliseconds)"},
{Name: "--timeout-request", Description: "Specify a timeout for requests (milliseconds)"},
{Name: "--timeout-script", Description: "Specify a timeout for scripts (milliseconds)"},
{Name: "--working-dir", Description: "Specify the path to the working directory"},
{Name: "--no-insecure-file-read", Description: "Prevents reading the files situated outside of the working directory"},
{Name: "-k", Description: "Disables SSL validations"},
{Name: "--ssl-client-cert-list", Description: "Specify the path to a client certificates configurations (JSON)"},
{Name: "--ssl-client-cert", Description: "Specify the path to a client certificate (PEM)"},
{Name: "--ssl-client-key", Description: "Specify the path to a client certificate private key"},
{Name: "--ssl-client-passphrase", Description: "Specify the client certificate passphrase (for protected key)"},
{Name: "--ssl-extra-ca-certs", Description: "Specify additionally trusted CA certificates (PEM)"},
{Name: "--cookie-jar", Description: "Specify the path to a custom cookie jar (serialized tough-cookie JSON)"},
{Name: "--export-cookie-jar", Description: "Exports the cookie jar to a file after completing the run"},
{Name: "--verbose", Description: "Show detailed information of collection run and each request sent"},
{Name: "-h", Description: "Display help for command"},
{Name: "-v", Description: "Output the version number"},
},
})
}