Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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
// AuthnProviderFactory provides CLI-specific authentication.
AuthnProviderFactory types.CLIAuthnProviderFactory
// OnTokenResolved is called when a token is resolved.
// This allows extensions to perform additional actions when a token is resolved (e.g. storing locally).
OnTokenResolved func(token string) error
// 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.