Documentation ¶
Index ¶
- func FlattenFloat64List(list []float64) string
- func FlattenFloatList(list []float32) string
- func FlattenInt64List(list []int64) string
- func FlattenIntList(list []int) string
- func FlattenStringList(list []string) string
- func FlattenUint64List(list []uint64) string
- func FlattenUintList(list []uint) string
- func NormalizeResourceName(name string) string
- func Sformat(buf []byte) []byte
- func ToCLIFlagName(name string) string
- func ToCamelCaseName(name string) string
- func ToCamelWithFirstLower(name string) string
- func ToDashedName(name string) string
- func ToSnakeCaseName(name string) string
- type GenerateContext
- func (c *GenerateContext) CLICommandsFileName() string
- func (c *GenerateContext) CamelC() string
- func (c *GenerateContext) CamelP() string
- func (c *GenerateContext) CamelR() string
- func (c *GenerateContext) Camelc() string
- func (c *GenerateContext) Camelp() string
- func (c *GenerateContext) Camelr() string
- func (c *GenerateContext) CommandArgsCompletionFileName(useCustom bool) string
- func (c *GenerateContext) CommandFileName(useCustomCommand bool) string
- func (c *GenerateContext) CommandFlagsCompletionFileName(useCustom bool) string
- func (c *GenerateContext) CommandFuncName() string
- func (c *GenerateContext) CommandResourceName() string
- func (c *GenerateContext) CompleteArgsFuncName() string
- func (c *GenerateContext) CompleteFlagsFuncName() string
- func (c *GenerateContext) CurrentCommand() *schema.Command
- func (c *GenerateContext) CurrentParam() *schema.Schema
- func (c *GenerateContext) CurrentResource() *schema.Resource
- func (c *GenerateContext) DashC() string
- func (c *GenerateContext) DashP() string
- func (c *GenerateContext) DashR() string
- func (c *GenerateContext) FindResultFieldName() string
- func (c *GenerateContext) Gopath() string
- func (c *GenerateContext) InputModelFileName() string
- func (c *GenerateContext) InputModelTypeName() string
- func (c *GenerateContext) InputParamCLIFlagName() string
- func (c *GenerateContext) InputParamDestinationName() string
- func (c *GenerateContext) InputParamFieldName() string
- func (c *GenerateContext) InputParamFlagName() string
- func (c *GenerateContext) InputParamSetterFuncName() string
- func (c *GenerateContext) InputParamVariableName() string
- func (c *GenerateContext) ResourceArgsCompletionFileName() string
- func (c *GenerateContext) ResourceFlagsCompletionFileName() string
- func (c *GenerateContext) SetCurrentR(k string)
- func (c *GenerateContext) SnakeC() string
- func (c *GenerateContext) SnakeP() string
- func (c *GenerateContext) SnakeR() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlattenFloat64List ¶
func FlattenFloatList ¶
func FlattenInt64List ¶
func FlattenIntList ¶
func FlattenStringList ¶
func FlattenUint64List ¶
func FlattenUintList ¶
func NormalizeResourceName ¶ added in v0.3.0
func ToCLIFlagName ¶
func ToCamelCaseName ¶
func ToCamelWithFirstLower ¶
func ToDashedName ¶
func ToSnakeCaseName ¶
Types ¶
type GenerateContext ¶
func NewGenerateContext ¶
func NewGenerateContext() *GenerateContext
func (*GenerateContext) CLICommandsFileName ¶
func (c *GenerateContext) CLICommandsFileName() string
func (*GenerateContext) CamelC ¶
func (c *GenerateContext) CamelC() string
func (*GenerateContext) CamelP ¶
func (c *GenerateContext) CamelP() string
func (*GenerateContext) CamelR ¶
func (c *GenerateContext) CamelR() string
func (*GenerateContext) Camelc ¶
func (c *GenerateContext) Camelc() string
func (*GenerateContext) Camelp ¶
func (c *GenerateContext) Camelp() string
func (*GenerateContext) Camelr ¶
func (c *GenerateContext) Camelr() string
func (*GenerateContext) CommandArgsCompletionFileName ¶
func (c *GenerateContext) CommandArgsCompletionFileName(useCustom bool) string
func (*GenerateContext) CommandFileName ¶
func (c *GenerateContext) CommandFileName(useCustomCommand bool) string
func (*GenerateContext) CommandFlagsCompletionFileName ¶
func (c *GenerateContext) CommandFlagsCompletionFileName(useCustom bool) string
func (*GenerateContext) CommandFuncName ¶
func (c *GenerateContext) CommandFuncName() string
func (*GenerateContext) CommandResourceName ¶
func (c *GenerateContext) CommandResourceName() string
func (*GenerateContext) CompleteArgsFuncName ¶
func (c *GenerateContext) CompleteArgsFuncName() string
func (*GenerateContext) CompleteFlagsFuncName ¶
func (c *GenerateContext) CompleteFlagsFuncName() string
func (*GenerateContext) CurrentCommand ¶
func (c *GenerateContext) CurrentCommand() *schema.Command
func (*GenerateContext) CurrentParam ¶
func (c *GenerateContext) CurrentParam() *schema.Schema
func (*GenerateContext) CurrentResource ¶
func (c *GenerateContext) CurrentResource() *schema.Resource
func (*GenerateContext) DashC ¶
func (c *GenerateContext) DashC() string
func (*GenerateContext) DashP ¶
func (c *GenerateContext) DashP() string
func (*GenerateContext) DashR ¶
func (c *GenerateContext) DashR() string
func (*GenerateContext) FindResultFieldName ¶
func (c *GenerateContext) FindResultFieldName() string
func (*GenerateContext) Gopath ¶
func (c *GenerateContext) Gopath() string
func (*GenerateContext) InputModelFileName ¶
func (c *GenerateContext) InputModelFileName() string
func (*GenerateContext) InputModelTypeName ¶
func (c *GenerateContext) InputModelTypeName() string
func (*GenerateContext) InputParamCLIFlagName ¶
func (c *GenerateContext) InputParamCLIFlagName() string
func (*GenerateContext) InputParamDestinationName ¶
func (c *GenerateContext) InputParamDestinationName() string
func (*GenerateContext) InputParamFieldName ¶
func (c *GenerateContext) InputParamFieldName() string
func (*GenerateContext) InputParamFlagName ¶
func (c *GenerateContext) InputParamFlagName() string
func (*GenerateContext) InputParamSetterFuncName ¶
func (c *GenerateContext) InputParamSetterFuncName() string
func (*GenerateContext) InputParamVariableName ¶
func (c *GenerateContext) InputParamVariableName() string
func (*GenerateContext) ResourceArgsCompletionFileName ¶ added in v0.0.12
func (c *GenerateContext) ResourceArgsCompletionFileName() string
func (*GenerateContext) ResourceFlagsCompletionFileName ¶ added in v0.0.12
func (c *GenerateContext) ResourceFlagsCompletionFileName() string
func (*GenerateContext) SetCurrentR ¶
func (c *GenerateContext) SetCurrentR(k string)
func (*GenerateContext) SnakeC ¶
func (c *GenerateContext) SnakeC() string
func (*GenerateContext) SnakeP ¶
func (c *GenerateContext) SnakeP() string
func (*GenerateContext) SnakeR ¶
func (c *GenerateContext) SnakeR() string
Click to show internal directories.
Click to hide internal directories.