Documentation ¶
Index ¶
- Variables
- func Execute() error
- func GetCharacter(cmd *cobra.Command, args []string)
- func GetCompanies(cmd *cobra.Command, args []string)
- func GetGame(cmd *cobra.Command, args []string)
- func GetInvolvedCompaniesRole(company *igdb.InvolvedCompany) string
- func ValidateFlag(value string) (string, error)
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 GetCharacter ¶ added in v1.1.0
func GetCompanies ¶ added in v1.2.0
func GetInvolvedCompaniesRole ¶ added in v1.2.0
func GetInvolvedCompaniesRole(company *igdb.InvolvedCompany) string
func ValidateFlag ¶ added in v1.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.