Files
iris-context/commands/view/subl.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

26 lines
969 B
Go

package view
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "subl",
Description: "Sublime Text",
Options: []spec.Option{
{Name: "--project", Description: "Load the given project"},
{Name: "--command", Description: "Run the given command"},
{Name: "-n", Description: "Open a new window"},
{Name: "-a", Description: "Add folders to the current window"},
{Name: "--launch-or-new-window", Description: "Only open a new window if the application is open"},
{Name: "-w", Description: "Wait for the files to be closed before returning"},
{Name: "-b", Description: "Don't activate the application"},
{Name: "-s", Description: "Keep the application activated after closing the file"},
{Name: "--safe-mode", Description: "Launch using a clean environment"},
{Name: "-h", Description: "Show a help message and exit"},
{Name: "-v", Description: "Show the version and exit"},
},
})
}