cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

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, mfaMethod string) *cobra.Command

NewConfigureCommandWithDeps creates a configure command with injected dependencies for testing

func NewFavoritesCommand

func NewFavoritesCommand() *cobra.Command

NewFavoritesCommand creates the favorites parent command with subcommands

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 NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates a new root command for testing (no elevation RunE)

func NewRootCommandWithDeps

func NewRootCommandWithDeps(
	authLoader authLoader,
	eligibilityLister eligibilityLister,
	elevateService elevateService,
	selector targetSelector,
	cfg *config.Config,
) *cobra.Command

NewRootCommandWithDeps creates a root command with injected dependencies for testing

func NewStatusCommand

func NewStatusCommand() *cobra.Command

NewStatusCommand creates the status command

func NewStatusCommandWithDeps

func NewStatusCommandWithDeps(authLoader authLoader, sessionLister sessionLister) *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