Files
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

30 lines
1.2 KiB
Go

package text
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "vale",
Description: "A syntax-aware linter for prose built with speed and extensibility in mind",
Subcommands: []spec.Subcommand{
{Name: "ls-config", Description: "Print the current configuration to stdout"},
{Name: "ls-metrics", Description: "Print the given file's internal metrics to stdout"},
{Name: "file", Description: "The path to a file you want to analyze"},
},
Options: []spec.Option{
{Name: "--help", Description: "Show help for vale"},
{Name: "--version", Description: "Print the current version"},
{Name: "--ignore-syntax", Description: "Lint all files line-by-line"},
{Name: "--no-exit", Description: "Don't return a nonzero exit code on errors"},
{Name: "--no-wrap", Description: "Don't wrap CLI output"},
{Name: "--ext", Description: "An extension to associate with stdin"},
{Name: "--glob", Description: "A glob pattern"},
{Name: "--minAlertLevel", Description: "The minimum level to display"},
{Name: "--output", Description: "The alert output style to use"},
{Name: "--config", Description: "A path to a .vale.ini file"},
},
})
}