Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "alpacon", Aliases: []string{"ac"}, Short: "Command-line client for Alpacon, the AI-native PAM", Long: `Alpacon CLI is the command-line client for Alpacon, the AI-native PAM. Humans, AI agents, and CI/CD run commands—each judged, recorded, and bounded. Quick start (for humans and AI agents): 1. alpacon server ls # find the server to target 2. alpacon work-session create \ # open + activate a scoped session --purpose "<what you're doing>" \ # (prints a SESSION_ID) --scope command,websh \ # (scopes: command, editor, sudo, tunnel, webftp, websh) --server <SERVER> \ --expires-in 1h \ # (required non-interactively; or --expires-at <RFC3339>) --use --wait 3. alpacon exec <SERVER> -- <COMMAND> # run work inside the session 4. alpacon work-session complete <SESSION_ID> # finish the session when done See 'alpacon work-session --help' for session lifecycle and error codes.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { switch utils.OutputFormat { case utils.OutputFormatTable, utils.OutputFormatJSON: return nil default: return fmt.Errorf("invalid --output value %q (expected %q or %q)", utils.OutputFormat, utils.OutputFormatTable, utils.OutputFormatJSON) } }, Run: func(cmd *cobra.Command, args []string) { utils.ShowLogo(buildWelcomeLines()) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.