cmd

package
v0.0.0-...-bef94b3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func IfBoolFlag

func IfBoolFlag(cmd *cobra.Command, flagName string, successFunc func())

IfBoolFlag executes a function if a given bool flag is true. `os.Exit(0)` is called if successFunc sucessfully runs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL