package
1.12.0
Repository: https://github.com/peripli/service-manager-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddCommonQueryFlag adds the CLI param that provides general query parameters.
AddFormatFlag adds the --output (-o) flag.
AddFormatFlagDefault is same as AddFormatFlag but allows to set default value.
AddModeFlag adds the --mode flag for SM calls.
AddQueryingFlags adds --field-query (-f) and --label-query (-l) flags.
No description provided by the author
BuildRootCommand builds a new SM root command with context.
CommonConfirmationPrompt provides common logic for confirmation of an operation.
CommonHandleAsyncExecution handles async execution of SM calls.
CommonPrepare provides common pre-run logic for SM commands.
CommonPrintDeclineMessage provides common confirmation declined message.
Execute executes the root command.
RunE provides common run logic for SM commands.
SmPrepare creates a SM client for SM commands.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Context is used as a context for the commands.
Group contains commands which have common prepare function.

# Interfaces

Command provides common logic for SM commands.
CommandPreparator used to wrap CLI commands.
ConfirmedCommand should be implemented if the command should ask for user confirmation prior execution.
FormattedCommand should be implemented if the command supports different output formatting through a --format or -f flag.
HiddenUsageCommand should be implemented if the command should not print its usage.
ValidatedCommand should be implemented if the command will have validation.

# Type aliases

PrepareFunc is function type which executes common prepare logic for commands.