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

37 lines
1.5 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "trex",
Description: "trex script",
Subcommands: []core.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: []core.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"},
},
})
}