subcommand

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateAPIPreProcess    = errors.New("error pre-processing `create api` subcommand")
	ErrCreateAPIProcess       = errors.New("error processing `create api` subcommand")
	ErrCreateAPISetComponents = errors.New("error setting components for `create api` subcommand")
)
View Source
var (
	ErrFileExists  = errors.New("force was not requested and file exists")
	ErrWriteFile   = errors.New("unable to write to file")
	ErrWriteStdout = errors.New("unable to write to stdout")
)

Functions

func CreateAPI

func CreateAPI(processor *config.Processor) error

CreateAPI runs through the logic that happens when the `create api` subcommand is executed. It is responsible for the processing of manifests and the markers within them, generating source code, and setting the values used during scaffolding.

func Init

func Init(processor *config.Processor) error

Init runs the process logic for a config processor when running the `init` subcommand.

func InitConfig

func InitConfig(options *InitConfigOptions) error

Types

type InitConfigOptions

type InitConfigOptions struct {
	Path           string
	Force          bool
	WorkloadConfig kinds.WorkloadBuilder
}

Jump to

Keyboard shortcuts

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