cmd

package
v0.0.0-...-a1cea6b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Overview

Package cmd - Holds reusable code for this package

Package cmd - contains the refresh sub-command

Package cmd - contains the version sub-command

Package cmd - contains the version sub-command

Index

Constants

This section is empty.

Variables

View Source
var GitCommit string

GitCommit - The git commit that was compiled. This will be filled in by the compiler.

View Source
var Unit string

Unit - this application's name

View Source
var Version string

Version - The main version number that is being run at the moment.

Functions

func CheckRequiredFlags

func CheckRequiredFlags(cmd *cobra.Command, _ []string) error

CheckRequiredFlags - Returns an error if a required flag is not set This function was found here: https://github.com/spf13/cobra/issues/206#issuecomment-322743645

func Execute

func Execute()

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

func GetLogger

func GetLogger(v *viper.Viper) logger.Logger

GetLogger - return a default logger instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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