Files
iris-context/commands/sys/trex.go
T
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

37 lines
1.5 KiB
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "trex",
Description: "trex script",
Subcommands: []spec.Subcommand{
{Name: "i", Description: "Install a package"},
{Name: "delete", Description: "Delete a package"},
{Name: "upgrade", Description: "Upgrade trex"},
{Name: "tree", Description: "View dependency tree"},
{Name: "run", Description: "Run a script alias in a file run.json"},
{Name: "purge", Description: "Remove a package or url from cache"},
{Name: "ls", Description: "Shows the list of installed packages"},
{Name: "exec", Description: "Execute a cli tool with out install then"},
{Name: "check", Description: "Check deno.land [std/x] dependencies updates"},
},
Options: []spec.Option{
{Name: "-v", Description: "Print version"},
{Name: "-m", Description: "Install package from deno.land"},
{Name: "-n", Description: "Install package from nest.land"},
{Name: "-p", Description: "Install package from some repository"},
{Name: "-c", Description: "Install custom package"},
{Name: "--canary", Description: "Install from dev branch"},
{Name: "-w", Description: "Use reboot script alias protocol (rsap)"},
{Name: "-wv", Description: "Verbose output in --watch mode (rsap)"},
{Name: "--perms", Description: "Specify cli permissions"},
{Name: "-f", Description: "Update outdated dependencies"},
{Name: "-h", Description: "Print help info"},
},
})
}