{"modulePath":"github.com/TMHSDigital/spackle","version":"v0.2.2","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package cli\n\nPackage cli implements the spackle command line: subcommand dispatch, flag parsing, help text and exit codes.\n\n## Constants\n\n```go\nconst (\n\tExitOK       = 0 // ran, nothing at or above the failure threshold\n\tExitFindings = 1 // ran, findings at or above the failure threshold\n\tExitUsage    = 2 // bad flags, bad config, or a refused target\n\tExitError    = 3 // the run itself failed\n)\n```\nExit codes. They are part of the CLI contract (see docs/ci.md).\n\n```go\nconst AuthorizedUse = \"Authorized use only. Point Spackle at systems you own or have written permission to test.\"\n```\nAuthorizedUse is shown at the top of help output and in the README.\n\n## Functions\n\n```go\nfunc Main(args []string, stdin io.Reader, stdout, stderr io.Writer) int\n```\nMain runs the CLI and returns the process exit code.\n\n## Types\n\n```go\ntype Env struct {\n\tStdin  io.Reader\n\tStdout io.Writer\n\tStderr io.Writer\n}\n```\nEnv carries the process streams so commands are testable.\n\n","path":"github.com/TMHSDigital/spackle/internal/cli","name":"cli","synopsis":"Package cli implements the spackle command line: subcommand dispatch, flag parsing, help text and exit codes.","isRedistributable":true}
