apply

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Name:      "apply",
	Usage:     "Apply patch to repository or repositories",
	ArgsUsage: "[patch]",

	Flags: []cli.Flag{
		&cli.StringSliceFlag{
			Name:    "tag",
			Aliases: []string{"t"},
		},
		&cli.StringSliceFlag{
			Name:    "repository",
			Aliases: []string{"r"},
		},
		&cli.StringFlag{
			Name:    "inventory",
			Aliases: []string{"i"},
		},
		&cli.StringFlag{
			Name:    "commit",
			Aliases: []string{"m"},
		},
		&cli.StringFlag{
			Name:    "branch",
			Aliases: []string{"b"},
		},
		&cli.StringSliceFlag{
			Name:    "param",
			Aliases: []string{"p"},
		},
		&cli.BoolFlag{
			Name:    "reuse",
			Aliases: []string{"u"},
			Usage:   "reuse current bulk and not create a new one",
		},
		&cli.BoolFlag{
			Name:    "no-interactive",
			Aliases: []string{"n"},
			Usage:   "non interactive mode disable all interactive prompts",
		},
	},

	Action: func(ctx *cli.Context) error {
		err := applyAction(ctx)
		if err != nil {
			return termui.CliError(ctx, err)
		}

		return nil
	},
}

Functions

This section is empty.

Types

type Options

type Options struct {
	Patch         string
	Repositories  []string
	Tags          []string
	InventoryFile string
	CommitMsg     string
	Branch        string
	Params        []string
}

Jump to

Keyboard shortcuts

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