scaffold

package
v0.4.40 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaffold

type Scaffold struct {
	Config *config.Config
	Logger *logrus.Logger
}

func New

func New(conf *config.Config, logger *logrus.Logger) *Scaffold

New allocates a new ScaffoldPointer with the given config.

func (*Scaffold) PerformOperation

func (s *Scaffold) PerformOperation(operation config.Operation, project *config.Project, path string, cloneDir string) error

PerformOperation performs the operation as specified by the settings file for the project It is responsible for performing any template replacements using GoTemplate

The method reads in the Action and determines what is requied The currently supported actions are

copy - copies data from the temporary dir to the working dir
cmd - run a command on the local machine
	The command is set using the `command` parameter

func (*Scaffold) Run

func (s *Scaffold) Run() error

Run performs the operations of the scaffolding sub command It will iterates around each of the projects that have been specified and performs all of the operations and that need to be done

Jump to

Keyboard shortcuts

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