create

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package create implements the bcli create subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	RootPath         *string `short:"r" help:"Directory to create the new project under"                 type:"path"`
	ProjectDirPrefix *string `short:"p" help:"Prefix to prepend to the generated project directory name"`
	GitLocation      *string `short:"g" help:"Git host and owner prefix for the generated module path"`
	NoGoGetUpdate    bool    `          help:"Skip the 'go get -u ./...' post step"`
	NoGoModTidy      bool    `          help:"Skip the 'go mod tidy' post step"`
	NoGitInit        bool    `          help:"Skip the 'git init' post step"`
	NoGitCommit      bool    `          help:"Skip the 'git commit' post step"`
	Name             string  `          help:"Name of the new CLI project"                                           arg:"" required:""`
	Description      string  `          help:"Description for the generated CLI"                                     arg:"" required:""`
}

Command creates a new starter CLI project.

func (*Command) AfterApply

func (c *Command) AfterApply(cfg *appconfig.Config) error

AfterApply applies command-specific flag overrides to the shared app config.

func (*Command) Run

func (c *Command) Run(log zerolog.Logger, cfg *appconfig.Config) error

Run generates the project scaffold and executes the configured post steps.

Jump to

Keyboard shortcuts

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