cli

package
v0.0.0-...-10e7bda Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generate = cmd.Sub{
	Name:  "generate",
	Alias: "g",
	Short: "Generate a Dockerfile from a chef config file.",
	Flags: &GenerateFlags{},
	Args:  &GenerateArgs{},
	Run:   RunGenerate,
}

Generate loads a chef configuration file and generates a Dockerfile

View Source
var Root *cmd.Root

Root is the main command.

Functions

func RunGenerate

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

RunGenerate loads the config file and generates a Dockerfile

Types

type GenerateArgs

type GenerateArgs struct {
	Chefyaml []string `zero:"true" desc:"The chef config file to read packages from."`
}

GenerateArgs holds arguments for Generate

type GenerateFlags

type GenerateFlags struct {
	SkipValidation bool `zero:"true" short:"s" long:"skip-validation" desc:"Skip validating the names and tags (requests internet connection).`
}

type GlobalFlags

type GlobalFlags struct{}

GlobalFlags contains the flags for commands.

Jump to

Keyboard shortcuts

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