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

24 lines
940 B
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "visudo",
Description: "Checking existing sudoers file for syntax errors",
Options: []spec.Option{
{Name: "--check", Description: "Checking existing sudoers file for syntax errors"},
{Name: "--file", Description: "Set an alternative sudoers file location"},
{Name: "--help", Description: "Display a short help message"},
{Name: "--quiet", Description: "Enable quiet mode (syntax error not printed)"},
{Name: "--strict", Description: "Enable strict checking of the sudoers file"},
{Name: "--version", Description: "Display version and exit"},
{Name: "--export", Description: "Export JSON and write it to output_file"},
{Name: "--perms", Description: "Enforce default mode for the sudoers file"},
{Name: "--owner", Description: "Enforce the default ownership for the sudoers file"},
},
})
}