Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NumbersMode int
NumbersMode determines which numbers format a PrintableSize should render to.
View Source
var RootCommand = &cobra.Command{
Use: "vorteil",
Short: "Vorteil's command-line interface",
Long: `Vorteil's command-line interface provides a complete set of tools for developers
to create, test, optimize, and build Vorteil apps.`,
}
Functions ¶
func AddNewProvisionerCmd ¶
AddNewProvisionerCmd - Append a command to the `vorteil provisioners new` command
func HandleErrors ¶
func HandleErrors()
func InitializeCommands ¶
func InitializeCommands()
func PlainTable ¶
func PlainTable(vals [][]string)
PlainTable prints data in a grid, handling alignment automatically.
func SetError ¶
SetError sets the global variables for when the process exits to display accordingly
func SetNumberModeFlagCMD ¶
SetNumberModeFlagCMD : Will SetNumberMode to the value of the cmd flag 'numbers'
func SetNumbersMode ¶
SetNumbersMode parses s and sets NumbersMode accordingly.
Types ¶
type PrintableSize ¶
type PrintableSize int
PrintableSize is a wrapper around int to alter its string formatting behaviour.
func (PrintableSize) String ¶
func (c PrintableSize) String() string
String returns a string representation of the PrintableSize, formatted according to the global NumbersMode.
Click to show internal directories.
Click to hide internal directories.