batch

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigTemplateText = `` /* 347-byte string literal not displayed */

Variables

View Source
var Command = &cli.Command{
	Name:  "batch",
	Usage: "Processes a set of kmgm commands.",
	Flags: append(structflags.MustPopulateFlagsFromStruct(Config{}),
		&cli.BoolFlag{
			Name:  "dump-template",
			Usage: "dump configuration template yaml without making actual changes",
		},
	),
	Action: Action,
}
View Source
var ErrYamlMustBeProvided = errors.New("batch: yaml config must be provided. Try `kmgm -c [config.yaml] batch`")

Functions

func Action

func Action(c *cli.Context) error

Types

type Config

type Config struct {
	Setup *setupcmd.Config `yaml:"setup"`

	Issues []*issuecmd.Config `yaml:"issues"`

	// This is here to avoid yaml.v3 Decoder with KnownFields(true) throwing error for valid AppFlags fields
	XXX_AppFlags appflags.AppFlags `yaml:",inline"`
}

Jump to

Keyboard shortcuts

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