commands

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 22 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
	// contains filtered or unexported fields
}

func (*Controller) Init

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

func (*Controller) Lint

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

func (*Controller) List

func (ctrl *Controller) List(ctx *cli.Context) 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 *scaffold.ScaffoldRC)

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

func (*Controller) Update

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

type Flags

type Flags struct {
	NoClobber      bool
	Force          bool
	ScaffoldRCPath string
	Cache          string
	OutputDir      string
	ScaffoldDirs   []string
}

func (Flags) OutputFS added in v0.0.90

func (f Flags) OutputFS() rwfs.WriteFS

OutputFS returns a WriteFS based on the OutputDir flag

type FlagsNew added in v0.0.90

type FlagsNew struct {
	NoPrompt bool
	Preset   string
	Snapshot string
}

Jump to

Keyboard shortcuts

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