Documentation
¶
Index ¶
- func Execute(args []string) (err error)
- func VersionString() string
- type AuditsCmd
- type AuditsCreateCmd
- type AuditsListCmd
- type AuthCmd
- type AuthRemoveCmd
- type AuthSetKeyCmd
- type AuthStatusCmd
- type CLI
- type EditorsCmd
- type EditorsCreateCmd
- type EditorsGetCmd
- type EditorsListCmd
- type EditorsScoreCmd
- type ExitError
- type RootFlags
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionString ¶
func VersionString() string
Types ¶
type AuditsCmd ¶
type AuditsCmd struct {
List AuditsListCmd `cmd:"" help:"List all audits"`
Create AuditsCreateCmd `cmd:"" help:"Create a new audit for a URL"`
}
type AuditsCreateCmd ¶
type AuditsCreateCmd struct {
URL string `arg:"" required:"" help:"URL to audit"`
}
type AuditsListCmd ¶
type AuditsListCmd struct{}
type AuthCmd ¶
type AuthCmd struct {
SetKey AuthSetKeyCmd `cmd:"" help:"Set API key (uses --stdin by default)"`
Status AuthStatusCmd `cmd:"" help:"Show authentication status"`
Remove AuthRemoveCmd `cmd:"" help:"Remove stored credentials"`
}
type AuthRemoveCmd ¶
type AuthRemoveCmd struct{}
type AuthSetKeyCmd ¶
type AuthStatusCmd ¶
type AuthStatusCmd struct{}
type CLI ¶
type CLI struct {
RootFlags `embed:""`
Version kong.VersionFlag `help:"Print version and exit"`
Auth AuthCmd `cmd:"" help:"Auth and credentials"`
Editors EditorsCmd `cmd:"" help:"Content Editor operations"`
Audits AuditsCmd `cmd:"" help:"Audit operations"`
VersionCmd VersionCmd `cmd:"" name:"version" help:"Print version"`
}
type EditorsCmd ¶
type EditorsCmd struct {
List EditorsListCmd `cmd:"" help:"List all content editors"`
Create EditorsCreateCmd `cmd:"" help:"Create a new content editor"`
Get EditorsGetCmd `cmd:"" help:"Get a content editor by ID"`
Score EditorsScoreCmd `cmd:"" help:"Get content score for an editor"`
}
type EditorsCreateCmd ¶
type EditorsGetCmd ¶
type EditorsGetCmd struct {
ID string `arg:"" required:"" help:"Content editor ID"`
}
type EditorsListCmd ¶
type EditorsScoreCmd ¶
type EditorsScoreCmd struct {
ID string `arg:"" required:"" help:"Content editor ID"`
}
type RootFlags ¶
type RootFlags struct {
Color string `help:"Color output: auto|always|never" default:"${color}"`
JSON bool `help:"Output JSON to stdout (best for scripting)" default:"${json}"`
Plain bool `help:"Output stable, parseable text to stdout (TSV; no colors)" default:"${plain}"`
Force bool `help:"Skip confirmations for destructive commands"`
NoInput bool `help:"Never prompt; fail instead (useful for CI)"`
Verbose bool `help:"Enable verbose logging"`
}
type VersionCmd ¶
type VersionCmd struct{}
Click to show internal directories.
Click to hide internal directories.