Files
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- 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
2026-07-05 11:27:30 +07:00

32 lines
1.3 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "ngrok",
Description: "Path to log file,",
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Shows a list of commands or help for one command"},
{Name: "authtoken", Description: "Save authtoken to configuration file"},
{Name: "credits", Description: "Prints author and licensing information"},
{Name: "http", Description: "Start an HTTP tunnel"},
{Name: "start", Description: "Start tunnels by name from the configuration file"},
{Name: "tcp", Description: "Start a TCP tunnel"},
{Name: "tls", Description: "Start a TLS tunnel"},
{Name: "update", Description: "Update ngrok to the latest version"},
{Name: "version", Description: "Print the version string"},
{Name: "8080", Description: "Port"},
},
Options: []spec.Option{
{Name: "--all", Description: "Start all tunnels in the configuration file"},
{Name: "--none", Description: "Start running no tunnels"},
{Name: "--remote-addr", Description: "Bind remote address (requires you reserve an address)"},
{Name: "--client-cas", Description: "Update ngrok to the latest version"},
{Name: "--channel", Description: "Update channel (stable, beta)"},
},
})
}