regenerate

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 6 Imported by: 0

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.New("invalid --overwrite value: must be allow, deny, or ask")

Functions

func NewCmdManifest

func NewCmdManifest(p *props.Props) *cobra.Command

func NewCmdProject

func NewCmdProject(p *props.Props) *cobra.Command

func NewCmdRegenerate

func NewCmdRegenerate(p *props.Props) *cobra.Command

Types

type ManifestOptions

type ManifestOptions struct {
	Path string
}

func (*ManifestOptions) Run

func (o *ManifestOptions) Run(ctx context.Context, p *props.Props) error

type ProjectOptions

type ProjectOptions struct {
	Path            string
	Force           bool
	Overwrite       string
	UpdateDocs      bool
	WrapSubcommands *bool
}

func (*ProjectOptions) Run

func (o *ProjectOptions) Run(ctx context.Context, p *props.Props) error

Jump to

Keyboard shortcuts

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