cli

package
v0.0.0-...-87137c7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generator = cmd.Sub{
	Name:  "gen",
	Alias: "g",
	Short: "generate code from a codegen.yaml",
	Flags: &GenFlags{},
	Args:  &GenArgs{},
	Run:   RunGen,
}

Parser looks at symbols and ABI in Go

View Source
var Loader = cmd.Sub{
	Name:  "load",
	Alias: "load",
	Short: "load a codegen.json",
	Flags: &LoadFlags{},
	Args:  &LoadArgs{},
	Run:   RunLoad,
}
View Source
var Root *cmd.Root

Root is the main command.

View Source
var VersionCmd = cmd.Sub{
	Name:  "version",
	Alias: "v",
	Short: "Print the version to the terminal.",
	Flags: &VersionFlags{},
	Args:  &VersionArgs{},
	Run:   RunVersion,
}

Dockerfile updates one or more Dockerfile

Functions

func RunGen

func RunGen(r *cmd.Root, c *cmd.Sub)

RunParser reads a file and creates a corpus

func RunLoad

func RunLoad(r *cmd.Root, c *cmd.Sub)

func RunVersion

func RunVersion(r *cmd.Root, c *cmd.Sub)

RunDockerfile updates one or more Dockerfile

Types

type GenArgs

type GenArgs struct {
	ConfigFile []string `zero:"true" desc:"A codegen.yaml to parse"`
}

Args and flags for generate

type GenFlags

type GenFlags struct {
	OutDir         string `long:"outdir" desc:"Output directory to write files"`
	ConfRenderType string `long:"render-type" desc:"Override a render type (e.g., random:5)"`
}

type GlobalFlags

type GlobalFlags struct{}

GlobalFlags contains the flags for commands.

type LoadArgs

type LoadArgs struct {
	JsonFile []string `zero:"true" desc:"A codegen.json to load"`
}

Args and flags for load

type LoadFlags

type LoadFlags struct{}

type VersionArgs

type VersionArgs struct {
}

Args and flags for generate

type VersionFlags

type VersionFlags struct {
}

Jump to

Keyboard shortcuts

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