commands

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCmd = &cobra.Command{
	Use:     "generate [name]",
	Aliases: []string{"g"},
	Short:   "Generation",
	Args:    cobra.ExactArgs(1),
	RunE:    AvatarGenerateCmdF,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "avatar",
	Short: "Open source avatar generator",
}
View Source
var ServerCmd = &cobra.Command{
	Use:     "serve",
	Aliases: []string{"s"},
	Short:   "Serve avatars",
	RunE:    AvatarServeCmdF,
}

Functions

func AvatarGenerateCmdF

func AvatarGenerateCmdF(command *cobra.Command, args []string) error

func AvatarServeCmdF

func AvatarServeCmdF(command *cobra.Command, args []string) error

func Run

func Run(args []string) error

Types

type Command

type Command = cobra.Command

Jump to

Keyboard shortcuts

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