cmd

package
v0.0.0-...-1947c73 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegionCmd = &cobra.Command{
	Use:   "region",
	Short: "Riot region",

	Run: func(cmd *cobra.Command, args []string) {
		showResult(cmd, viper.GetString("region"))
	},
}

RegionCmd represents the region command

View Source
var SummonersCmd = &cobra.Command{
	Use:   "summoners",
	Short: "Detail of summoners with given name list",
	Run:   summonerData,
}

SummonersCmd represents the summoners command

View Source
var TokenCmd = &cobra.Command{
	Use:   "token",
	Short: "Riot api token",

	Run: func(cmd *cobra.Command, args []string) {
		showResult(cmd, viper.GetString("riottoken"))
	},
}

TokenCmd represents the token command

Functions

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.

Types

type PromtSelect

type PromtSelect interface {
	Run() (int, string, error)
}

Jump to

Keyboard shortcuts

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