Documentation
¶
Overview ¶
Package regenerate provides Cobra commands for regenerating project command registration files (cmd.go) and manifests from existing project structure, without overwriting implementation files unless explicitly forced.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidOverwriteValue = errors.NewSentinel("gtb.regenerate.invalid_overwrite_value", "invalid --overwrite value: must be allow, deny, or ask")
Functions ¶
func NewCmdManifest ¶
func NewCmdManifest(p *props.Props, shared *SharedFlags) *cobra.Command
func NewCmdProject ¶
func NewCmdProject(p *props.Props, shared *SharedFlags) *cobra.Command
Types ¶
type ManifestOptions ¶
type ManifestOptions struct {
Path string
// contains filtered or unexported fields
}
type ProjectOptions ¶
type SharedFlags ¶
type SharedFlags struct {
}
SharedFlags carries `regenerate`'s persistent flags to the subcommands that read them. See generate.SharedFlags for why this is not a package-level variable: pflag writes to whatever it is given, so a package-level target makes building two command trees a data race.
Click to show internal directories.
Click to hide internal directories.