cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPkgName    = "name"
	FlagPkgArch    = "arch"
	FlagPkgVersion = "version"

	FlagOutDirectory = "directory"
	FlagOutFilename  = "file"
	FlagOutApk       = "apk"
	FlagOutDeb       = "deb"
	FlagOutRpm       = "rpm"
	FlagInstall      = "install"
)

Variables

View Source
var GenerateFlags = []cli.Flag{
	&cli.StringFlag{Name: FlagPkgName, Usage: "package name"},
	&cli.StringFlag{Name: FlagPkgArch, Usage: "package architecture"},
	&cli.StringFlag{Name: FlagPkgVersion, Usage: "package version"},
	&cli.StringFlag{Name: pkgMaintainer, Usage: "package maintainer"},
	&cli.StringFlag{Name: pkgDescription, Usage: "package description", Value: "hansel virtual package"},

	&cli.StringFlag{Name: FlagOutDirectory, Usage: "output directory", Value: "."},
	&cli.StringFlag{Name: FlagOutFilename, Usage: "output filename, generated if not provided"},
	&cli.BoolFlag{Name: FlagOutApk, Usage: "generate apk package", Aliases: []string{"alpine"}},
	&cli.BoolFlag{Name: FlagOutDeb, Usage: "generate deb package", Aliases: []string{"debian", "ubuntu"}},
	&cli.BoolFlag{Name: FlagOutRpm, Usage: "generate rpm package", Aliases: []string{"fedora", "rhel"}},
	&cli.BoolFlag{
		Name:  FlagInstall,
		Usage: "install the package automatically and delete the file",
	},
}

Functions

func Generate

func Generate(log logr.Logger) func(ctx *cli.Context) error

func NewApp

func NewApp(log logr.Logger) *cli.App

Types

This section is empty.

Jump to

Keyboard shortcuts

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