Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIClient *client.Client
APIClient is the shared API client used by CLI commands after pre-run.
Functions ¶
func Configure ¶
func Configure(opts CLIOptions)
Configure applies options to the root command (e.g. for tests or alternate entry points).
Types ¶
type CLIOptions ¶
type CLIOptions struct {
// DaemonManager handles daemon lifecycle. If nil, uses default.
DaemonManager types.DaemonManager
// AuthnProvider provides CLI-specific authentication.
// If nil, token comes from flags/env (ARCTL_API_TOKEN).
AuthnProvider types.CLIAuthnProvider
// ClientFactory creates the API client. If nil, uses client.NewClientWithConfig (requires network).
ClientFactory ClientFactory
}
CLIOptions configures the CLI behavior. Can be extended for more options (e.g. client factory).
Click to show internal directories.
Click to hide internal directories.