Files
iris-context/commands/view/glow.go
2026-07-26 20:43:05 +07:00

31 lines
1.0 KiB
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!",
MaxArgs: 1,
Generator: spec.FileGenerator(),
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"},
},
})
}