Documentation
¶
Overview ¶
NOTE: Do not use t.Parallel() in cmd/ tests due to package-level state (verbose, passedArgValidation) that is mutated during test execution.
Index ¶
- func Execute()
- func NewConfigureCommand() *cobra.Command
- func NewConfigureCommandWithDeps(saver profileSaver, tenantURL, username string) *cobra.Command
- func NewEnvCommand() *cobra.Command
- func NewEnvCommandWithDeps(profile *sdkmodels.IdsecProfile, authLoader authLoader, ...) *cobra.Command
- func NewFavoritesCommand() *cobra.Command
- func NewFavoritesCommandWithDeps(eligLister eligibilityLister, sel targetSelector, prompter namePrompter) *cobra.Command
- func NewLoginCommand() *cobra.Command
- func NewLoginCommandWithAuth(auth authenticator) *cobra.Command
- func NewLogoutCommand() *cobra.Command
- func NewLogoutCommandWithDeps(clearer keyringClearer) *cobra.Command
- func NewRootCommandWithDeps(profile *sdkmodels.IdsecProfile, authLoader authLoader, ...) *cobra.Command
- func NewStatusCommand() *cobra.Command
- func NewStatusCommandWithDeps(authLoader authLoader, sessionLister sessionLister, ...) *cobra.Command
- func NewVersionCommand() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigureCommand ¶
NewConfigureCommand creates the configure command
func NewConfigureCommandWithDeps ¶
NewConfigureCommandWithDeps creates a configure command with injected dependencies for testing
func NewEnvCommand ¶ added in v0.2.0
NewEnvCommand creates the production env command.
func NewEnvCommandWithDeps ¶ added in v0.2.0
func NewEnvCommandWithDeps( profile *sdkmodels.IdsecProfile, authLoader authLoader, eligibilityLister eligibilityLister, elevateService elevateService, selector targetSelector, cfg *config.Config, ) *cobra.Command
NewEnvCommandWithDeps creates an env command with injected dependencies for testing.
func NewFavoritesCommand ¶
NewFavoritesCommand creates the favorites parent command with subcommands
func NewFavoritesCommandWithDeps ¶ added in v0.2.0
func NewFavoritesCommandWithDeps(eligLister eligibilityLister, sel targetSelector, prompter namePrompter) *cobra.Command
NewFavoritesCommandWithDeps creates the favorites command with injected dependencies for testing
func NewLoginCommand ¶
NewLoginCommand creates the login command
func NewLoginCommandWithAuth ¶
NewLoginCommandWithAuth creates a login command with a custom authenticator for testing
func NewLogoutCommand ¶
NewLogoutCommand creates the logout command
func NewLogoutCommandWithDeps ¶ added in v0.2.0
NewLogoutCommandWithDeps creates a logout command with injected dependencies for testing
func NewRootCommandWithDeps ¶
func NewRootCommandWithDeps( profile *sdkmodels.IdsecProfile, authLoader authLoader, eligibilityLister eligibilityLister, elevateService elevateService, selector targetSelector, cfg *config.Config, ) *cobra.Command
NewRootCommandWithDeps creates a root command with injected dependencies for testing. It accepts a pre-loaded profile to avoid filesystem access during tests.
func NewStatusCommand ¶
NewStatusCommand creates the status command
func NewStatusCommandWithDeps ¶
func NewStatusCommandWithDeps(authLoader authLoader, sessionLister sessionLister, eligLister eligibilityLister) *cobra.Command
NewStatusCommandWithDeps creates a status command with injected dependencies for testing
func NewVersionCommand ¶
NewVersionCommand creates the version command
Types ¶
This section is empty.