- 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
29 lines
1012 B
Go
29 lines
1012 B
Go
package view
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/commands/core"
|
|
)
|
|
|
|
func init() {
|
|
core.Register(&core.Spec{
|
|
Name: "glow",
|
|
Description: "Render markdown on the CLI, with pizzazz!",
|
|
Subcommands: []core.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: []core.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"},
|
|
},
|
|
})
|
|
}
|