package
0.0.82
Repository: https://github.com/mindersec/minder.git
Documentation: pkg.go.dev

# Packages

Package table contains utilities for rendering tables.
Package useragent contains utilities for setting up the CLI's user agent.

# Functions

ConcatenateAndWrap takes a string and a maximum line length (maxLen), then outputs the string as a multiline string where each line does not exceed maxLen characters.
EnsureCredentials is a PreRunE function to ensure that the user has valid credentials, opening a browser for login if needed.
ExitNicelyOnError print a message and exit with the right code.
GetAppContext is a helper for getting the cmd app context.
GetAppContextWithTimeoutDuration is a helper for getting the cmd app context with a custom timeout.
GetDefaultCLIConfigPath returns the default path for the CLI config file Returns an empty string if the path cannot be determined.
GetNameAndOwnerFromRepository returns the owner and name from a repository name in the format owner/name.
GetProviderConfig retrieves the provider configuration from the minder service.
GetRelevantCLIConfigPath returns the relevant CLI config path.
GetRepositoryName returns the repository name in the format owner/name.
GRPCClientWrapRunE is a wrapper for cobra commands that sets up the grpc client and context.
GrpcForCommand is a helper for getting a testing connection from cobra flags.
IsYAMLFileAndNotATest checks if a file is a YAML file and not a test file.
Login is a helper function to handle the login process and return the access token.
LoginAndSaveCreds runs a login flow for the user, opening a browser if needed.
MaybeRenderMarkdown tries to render the given string as markdown.
MessageAndError prints a message and returns an error.
MultiSelect implements the necessary logic to implement an interactive multi-select menu for the CLI.
PrintYesNoPrompt prints a yes/no prompt to the user and returns false if the user did not respond with yes or y.
RenderMarkdown renders the given string as markdown.
SetProviderConfig sets the provider configuration in the minder service.
ValidateRepositoryName checks if a repository name is valid.

# Variables

AccentColor is the accent color for the cli.
BlackColor is the black color for the cli.
Common styles.
DefaultBannerWidth is the default width for a banner.
Header is the style to use for headers.
PrimaryColor is the primary color for the cli.
SecondaryColor is the secondary color for the cli.
SuccessBanner is the style to use for a success banner.
Banner styles.
WhiteColor is the white color for the cli.

# Structs

ErrWrappedCLIError is an error that wraps another error and provides a message used from within the CLI.
ProviderConfigUnion is a union type for the different provider configurations this is a temporary kludge until we can autogenerate the possible attributes.