cmd

package
v0.0.0-...-f149eba Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:                    "12to8",
	Short:                  "A client for 925r",
	Long:                   "12to8 is a commandline application for the 925r, a free and open source time and leave tracking application.",
	BashCompletionFunction: bashCompletionFunc,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

func NewAPIClient

func NewAPIClient() api.Client

NewAPIClient creates a new API client and populate its cache It gets endpoint, user, password from viper

Types

This section is empty.

Jump to

Keyboard shortcuts

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