Documentation ¶
Index ¶
- func AddCommand(cmd *cobra.Command)
- func AddRegistryFunction(function RegistryFunction)
- func Execute()
- func Initialize(pkg, name, version string)
- func SetGenerateCommandCallback(callback CommandCallback)
- func SetValidateCommandCallback(callback CommandCallback)
- type CommandCallback
- type Config
- type Context
- func (ctx *Context) Args() []string
- func (ctx *Context) Collector() *marker.Collector
- func (ctx *Context) Config() Config
- func (ctx *Context) ConfigFilePath() string
- func (ctx *Context) Directories() []string
- func (ctx *Context) Error(err error)
- func (ctx *Context) LoadResult() *packages.LoadResult
- func (ctx *Context) ModuleRoot() string
- func (ctx *Context) OutputPath() string
- func (ctx *Context) ParameterValue(name string) (Parameter, bool)
- func (ctx *Context) Parameters() []Parameter
- func (ctx *Context) Registry() *marker.Registry
- func (ctx *Context) Set(name string, value any)
- func (ctx *Context) Value(name string) (any, bool)
- type Override
- type Parameter
- type RegistryFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddRegistryFunction ¶
func AddRegistryFunction(function RegistryFunction)
func Initialize ¶
func Initialize(pkg, name, version string)
func SetGenerateCommandCallback ¶
func SetGenerateCommandCallback(callback CommandCallback)
func SetValidateCommandCallback ¶
func SetValidateCommandCallback(callback CommandCallback)
Types ¶
type CommandCallback ¶
type CommandCallback func(ctx *Context)
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ConfigFilePath ¶
func (*Context) Directories ¶
func (*Context) LoadResult ¶
func (ctx *Context) LoadResult() *packages.LoadResult
func (*Context) ModuleRoot ¶
func (*Context) OutputPath ¶
func (*Context) Parameters ¶
type RegistryFunction ¶
Click to show internal directories.
Click to hide internal directories.