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

26 lines
905 B
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "shortcuts",
Description: "Run a shortcut",
Subcommands: []spec.Subcommand{
{Name: "help", Description: "Show help information"},
},
Options: []spec.Option{
{Name: "-i", Description: "The input to provide to the shortcut"},
{Name: "-o", Description: "Where to write the shortcut output, if applicable"},
{Name: "--output-type", Description: "JavaScript Object Notation (JSON)"},
{Name: "--folder-name", Description: "The name of the folder to list"},
{Name: "--folders", Description: "List folders instead of shortcuts"},
{Name: "--input", Description: "The shortcut file to sign"},
{Name: "--output", Description: "Output path for the signed shortcut file"},
{Name: "--mode", Description: "The signing mode. (default: people-who-know-me)"},
},
})
}