Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []cli.Command{ { Name: "init", Aliases: []string{"i"}, Usage: "init jupiter dependencies", Action: Init, }, { Name: "new", Aliases: []string{"n"}, Usage: "generate code framework", Flags: []cli.Flag{ cli.StringFlag{ Name: "type", Usage: "choose template", Value: "jupiter-layout", }, }, Action: func(c *cli.Context) error { return New(c) }, }, { Name: "run", Aliases: []string{"r"}, Usage: "auto restart program when files changed", Action: func(c *cli.Context) error { return Run(c) }, Flags: []cli.Flag{ cli.StringFlag{ Name: "c", Value: ".jupiter.toml", Usage: "指定启动配置文件", }, cli.BoolFlag{ Name: "debug", Usage: "debug mode", }, }, }, { Name: "update", Aliases: []string{"upgrade"}, Usage: "Upgrade to the latest version", Action: func(c *cli.Context) error { return Update(c) }, }, { Name: "clean", Usage: "clear all cached", Action: func(c *cli.Context) error { return Clean(c) }, }, { Name: "struct2interface", Aliases: []string{"struct2interface"}, Usage: "Auto generate interface from struct for golang", Action: func(c *cli.Context) error { return Struct2Interface(c) }, Flags: []cli.Flag{ cli.StringFlag{ Name: "d,dir", Usage: "please specify the code path", Value: ".", }, }, }, }
Functions ¶
func Struct2Interface ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.