# README
CDS - Command Line Interface
# Functions
AskChoice for a choice in given options, returns the selected option index.
AskConfirm for confirmation on command line.
AskPassword ask for a password string and returns it.
AskSelect for multiple choices in given options, returns indexes of selected options.
AskValue ask for a string and returns it.
AsListResult compute any slice to ListResult.
CommandWithExtraAliases to add common extra alias.
CommandWithExtraFlags to add common extra flags.
CommandWithoutExtraFlags to avoid add extra flags.
CommandWithPreRun to add pre run function.
Ellipsis return a trunckated string if i parameter is < of string length.
ExitOnError if the error is not nil; exit the process with printing help functions and the error.
NewCommand creates a new cobra command with or without a RunFunc and eventually subCommands.
NewCustomMultiSelect custom survey multi select from options.
NewDeleteCommand creates a new cobra command with a RunDeleteFunc and eventually subCommands.
NewGetCommand creates a new cobra command with a RunGetFunc and eventually subCommands.
NewListCommand creates a new cobra command with a RunListFunc and eventually subCommands.
OSExit will os.Exit if ShellMode is false, display only exit code if true.
ParsePath returns group and itme name from given path.
ReadLine prompts input from the user delimited by a new line.
# Variables
Colors..
Colors..
Colors..
Colors..
ErrWrongUsage is a common error.
Colors..
Colors..
Colors..
Colors..
Colors..
ShellMode will os.Exit if false, display only exit code if true.
If Verbose is set to true, ExitOnError will try to display more detail about the potential errors.
Colors..
# Structs
Arg represent a command argument.
Command represents the way to instantiate a cobra.Command.
CustomMultiSelect is a custom multi select over survey multi select that allows to add extra info on items.
CustomMultiSelectOption for CustomMultiSelect.
Error implements error.
Flag represents a command flag.
# Type aliases
CommandModifier is a function type to extend a command.
Display helps you to display message on a terminal.
FlagType for cli flag.
ListResult is the result type for command function which returns list.
RunDeleteFunc is a run function for a command.
RunFunc is the most basic run function for a command.
RunGetFunc is a run function for a command.
RunListFunc is a run function for a command.
SubCommands represents an array of cobra.Command.
Values represents commands flags and args values accessible with their name.