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

44 lines
2.1 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "aliases",
Description: "Prints help information",
Subcommands: []core.Subcommand{
{Name: "add", Description: "Add an alias via the cli"},
{Name: "name", Description: "The name of the alias"},
{Name: "command", Description: "The command you want to run"},
{Name: "clone", Description: "Clone external aliases"},
{Name: "username", Description: "The username of the aliases you want to clone"},
{Name: "repo_url", Description: "The git repo url of the aliases (defaults to github/<username>/dot-aliases)"},
{Name: "directories", Description: "List all directories initialized with aliases"},
{Name: "exec", Description: "Execute an alias for a given directory"},
{Name: "directory", Description: "Directory where the alias is defined"},
{Name: "help", Description: "Prints help information"},
{Name: "init", Description: "Initialize a directory for aliases"},
{Name: "list", Description: "List the aliases available"},
{Name: "pull", Description: "Pull a cloned user's aliases"},
{Name: "rehash", Description: "Update the aliases"},
{Name: "remove", Description: "Remove an alias via the cli"},
{Name: "users", Description: "List the users"},
{Name: "disable", Description: "Disable a user's aliases"},
{Name: "enable", Description: "Enable a user's aliases"},
{Name: "move", Description: "Move a user up or down the prioritization list"},
{Name: "use", Description: "Assign a user to the top of the priority list"},
},
Options: []core.Option{
{Name: "--help", Description: "Prints help information"},
{Name: "--version", Description: "Prints version information"},
{Name: "-E", Description: "Whether to enable the user if they are not currently enabled"},
{Name: "-g", Description: "Returns the global initialization for the app"},
{Name: "-u", Description: "Initialize aliases for a specific user"},
{Name: "-l", Description: "List only local aliases"},
{Name: "-d", Description: "List aliases for a specific directory"},
},
})
}