app

package
v0.5.1-rc0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHAuthSock = "SSH_AUTH_SOCK"
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "app [--name <name>] [--url <url>] [--branch <branch>] [--path <path within repository>] <repository directory>",
	Short: "Add a workload repository to a gitops cluster",
	Long: strings.TrimSpace(dedent.Dedent(`
        Associates an additional application in a git repository with a gitops cluster so that its contents may be managed via GitOps
    `)),
	Example: `
  # Add application to gitops control from local git repository
  gitops add app .

  # Add podinfo application to gitops control from github repository
  gitops add app --url git@github.com:myorg/podinfo
`,
	RunE:          runCmd,
	SilenceUsage:  true,
	SilenceErrors: true,
	PostRun: func(cmd *cobra.Command, args []string) {
		version.CheckVersion(version.CheckpointParamsWithFlags(version.CheckpointParams(), cmd))
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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