cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   filepath.Base(os.Args[0]),
	Short: "sparrow 是一个基于 gin 的 restful api 风格的 web 框架",
	Long: `sparrow 是一个简洁优雅的 go 语言 web 框架,用来快速开发 前后端分离 模式下的后端业务逻辑.
sparrow的目标就是: 尽量平衡自由和规范的界限,既可以让开发者减少开发工作量和开发心智负担,同时开发者有自由组合的权利;当然这是个美好的愿望,希望能实现. 😁😁😁`,
}

RootCmd represents the base command when called without any subcommands

Functions

func AddCommand

func AddCommand(cmd ...*cobra.Command)

AddCommand 添加子命令

func GetConfig

func GetConfig() string

func GetConfigAutoEnv

func GetConfigAutoEnv() bool

func GetConfigEnvPrefix

func GetConfigEnvPrefix() string

func GetEtc

func GetEtc() string

func GetEtcAutoEnv

func GetEtcAutoEnv() bool

func GetEtcEnvPrefix

func GetEtcEnvPrefix() string

func InitCmd

func InitCmd(use, short, long string, runE func(*cobra.Command, []string) error, version string) (err error)

InitCmd 初始化命令行

func TrimSpaceConfig

func TrimSpaceConfig() string

func TrimSpaceEtc

func TrimSpaceEtc() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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