cmd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 25 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewConfigureCommand

func NewConfigureCommand() *cobra.Command

NewConfigureCommand creates the configure command

func NewConfigureCommandWithDeps

func NewConfigureCommandWithDeps(saver profileSaver, tenantURL, username string) *cobra.Command

NewConfigureCommandWithDeps creates a configure command with injected dependencies for testing

func NewEnvCommand added in v0.2.0

func NewEnvCommand() *cobra.Command

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

func NewFavoritesCommand() *cobra.Command

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

func NewLoginCommand() *cobra.Command

NewLoginCommand creates the login command

func NewLoginCommandWithAuth

func NewLoginCommandWithAuth(auth authenticator) *cobra.Command

NewLoginCommandWithAuth creates a login command with a custom authenticator for testing

func NewLogoutCommand

func NewLogoutCommand() *cobra.Command

NewLogoutCommand creates the logout command

func NewLogoutCommandWithDeps added in v0.2.0

func NewLogoutCommandWithDeps(clearer keyringClearer) *cobra.Command

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

func NewStatusCommand() *cobra.Command

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

func NewVersionCommand() *cobra.Command

NewVersionCommand creates the version command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL