cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "donations",
	Short: "Donation requests for clans.",
	Long:  "Donation requests for clans.",
}

RootCmd is the root command for donations CLI application

View Source
var Verbose int

Verbose determines how verbose donations will run under

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "returns donations version",
	Long:  `returns donations version`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("donations v%s\n", metadata.GetVersion())
	},
}

VersionCmd represents the version command

Functions

func Execute

func Execute(cmd *cobra.Command)

Execute runs RootCmd to initialize donations CLI application

Types

This section is empty.

Jump to

Keyboard shortcuts

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