cmd

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMIT = "unknown"

COMMIT is the short hash of the source tree. This should be substituted by Git commit hash during the build process.

View Source
var VERSION = "dev"

VERSION is the current version of decK. This should be substituted by git tag during the build process.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets sflags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SetStopCh

func SetStopCh(stopCh chan struct{})

SetStopCh sets the stop channel for long running commands. This is useful for cases when a process needs to be cancelled gracefully before it can complete to finish. Example: SIGINT

Types

This section is empty.

Jump to

Keyboard shortcuts

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