cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.0"

Version will be set in CI to the current released version

Functions

func DefaultRootCmd

func DefaultRootCmd() *cobra.Command

DefaultRootCmd creates the default root command with its dependencies wired in

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewRootCmd

func NewRootCmd(exec Executor, writ Writer) *cobra.Command

NewRootCmd creates the root command for reinforcer

Types

type Executor

type Executor interface {
	Execute(settings *executor.Parameters) (*generator.Generated, error)
}

Executor describes the code generator executor

type Writer

type Writer interface {
	Write(outputDirectory string, generated *generator.Generated) error
}

Writer describes the code generator writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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