- 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
29 lines
1003 B
Go
29 lines
1003 B
Go
package view
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "glow",
|
|
Description: "Render markdown on the CLI, with pizzazz!",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "config", Description: "Edit the glow config file"},
|
|
{Name: "help", Description: "Help about any command"},
|
|
{Name: "stash", Description: "Manage your stash of markdown files"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "-a", Description: "Show system files and directories (TUI-mode only)"},
|
|
{Name: "--config", Description: "Config file"},
|
|
{Name: "-h", Description: "Help for glow"},
|
|
{Name: "-l", Description: "Show local files only; no network (TUI-mode only)"},
|
|
{Name: "-p", Description: "Display with pager"},
|
|
{Name: "-s", Description: "Style name or JSON path (default 'auto')"},
|
|
{Name: "-v", Description: "Version for glow"},
|
|
{Name: "-w", Description: "Word-wrap at width"},
|
|
{Name: "-m", Description: "Memo/note for stashing"},
|
|
},
|
|
})
|
|
}
|