cmd

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CharacterCmd = &cobra.Command{
	Use:   "character [Character name]",
	Short: "Get character informations",
	Long:  "Get informations about a game character by using it name for searching in IGDB database.",
	Args:  cobra.MinimumNArgs(1),
	Run:   GetCharacter,
}
View Source
var CompaniesCmd = &cobra.Command{
	Use:   "companies [Game name]",
	Short: "Get information about the companies involved in a game",
	Long:  "Get informations about companies involved in a game by using it name for searching in IGDB database.",
	Args:  cobra.MinimumNArgs(1),
	Run:   GetCompanies,
}
View Source
var GameCmd = &cobra.Command{
	Use:   "game [Game name]",
	Short: "Get game informations",
	Long:  "Get informations about a game by using it name for searching in IGDB database.",
	Args:  cobra.MinimumNArgs(1),
	Run:   GetGame,
}
View Source
var OnlyRole string
View Source
var (
	RootCmd = &cobra.Command{
		Use:   "gabbro",
		Short: "Simple CLI to interact with IGDB API",
		Long: `
	 _____       _     _               
	|  __ \     | |   | |              
	| |  \/ __ _| |__ | |__  _ __ ___  
	| | __ / _' | '_ \| '_ \| '__/ _ \ 
	| |_\ \ (_| | |_) | |_) | | | (_) |
	\_____/\__,_|_.__/|_.__/|_|  \___/`,
	}
)
View Source
var WithImage bool

Functions

func Execute

func Execute() error

func GetCharacter added in v1.1.0

func GetCharacter(cmd *cobra.Command, args []string)

func GetCompanies added in v1.2.0

func GetCompanies(cmd *cobra.Command, args []string)

func GetGame

func GetGame(cmd *cobra.Command, args []string)

func GetInvolvedCompaniesRole added in v1.2.0

func GetInvolvedCompaniesRole(company *igdb.InvolvedCompany) string

func ValidateFlag added in v1.3.0

func ValidateFlag(value string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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