commands

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 29 Imported by: 1

Documentation

Overview

Package commands containers all the commands for the application CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// Flags contains the CLI flags
	// that are from the root command
	Flags   Flags
	Version string
	// contains filtered or unexported fields
}

func (*Controller) Init

func (ctrl *Controller) Init(ctx *cli.Context) error

func (*Controller) Lint

func (ctrl *Controller) Lint(pfpath string) error

func (*Controller) List

func (ctrl *Controller) List(flags FlagsList) error

func (*Controller) New added in v0.0.90

func (ctrl *Controller) New(args []string, flags FlagsNew) error

func (*Controller) Prepare

func (ctrl *Controller) Prepare(e *engine.Engine, src *scaffoldrc.ScaffoldRC)

Prepare sets up the controller to be called by the CLI, if the controller is not prepared it will panic

func (*Controller) RuntimeConfigYAML added in v0.3.0

func (ctrl *Controller) RuntimeConfigYAML() (string, error)

func (*Controller) Update

func (ctrl *Controller) Update(ctx *cli.Context) error

type ErrList added in v0.3.0

type ErrList []error

func (ErrList) Error added in v0.3.0

func (e ErrList) Error() string

type Flags

type Flags struct {
	ScaffoldRCPath string
	Cache          string
	ScaffoldDirs   []string
}

type FlagsList added in v0.5.0

type FlagsList struct {
	OutputDir string
}

type FlagsNew added in v0.0.90

type FlagsNew struct {
	NoPrompt   bool
	Preset     string
	Snapshot   string
	NoClobber  bool
	ForceApply bool
	OutputDir  string
}

func (FlagsNew) OutputFS added in v0.5.0

func (f FlagsNew) OutputFS() rwfs.WriteFS

OutputFS returns a WriteFS based on the OutputDir flag

Jump to

Keyboard shortcuts

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