cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use: "Tekleader",
	Short: "Tekleader makes it possible to establish" +
		" a rank between {EPITECH} students, and much more.",
	Long: "",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		if tekleader.Timeout < 1 {
			log.Fatal(errors.New("Timeout must be > 1"))
		}

		if skipAuth(cmd.Name()) {
			return
		}

		tekleader.PrintStatus(false)

		tekleader.AuthKey = viper.GetString("tek_authkey")

		err := tekleader.Auth()
		if err != nil {
			log.Fatal(err)
		}
	},
}

RootCmd represents the base command when called without any subcommands

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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