mirror of https://github.com/helm/helm
Merge pull request #26 from technosophos/feat/workflow-stubs
feat(*): stub out commands for helmpull/291/head
commit
3aaf775209
@ -0,0 +1,43 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(chartCommands())
|
||||
}
|
||||
|
||||
func chartCommands() cli.Command {
|
||||
return cli.Command{
|
||||
// Names following form prescribed here: http://is.gd/QUSEOF
|
||||
Name: "chart",
|
||||
Usage: "Perform chart-centered operations.",
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "config",
|
||||
Usage: "Create a configuration parameters file for this chart.",
|
||||
ArgsUsage: "CHART",
|
||||
},
|
||||
{
|
||||
Name: "show",
|
||||
Aliases: []string{"info"},
|
||||
Usage: "Provide details about this package.",
|
||||
ArgsUsage: "CHART",
|
||||
},
|
||||
{
|
||||
Name: "scaffold",
|
||||
},
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "list all deployed charts, optionally constraining by pattern.",
|
||||
ArgsUsage: "[PATTERN]",
|
||||
},
|
||||
{
|
||||
Name: "deployments",
|
||||
Usage: "given a chart, show all the deployments that reference it.",
|
||||
ArgsUsage: "CHART",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(credCommands())
|
||||
}
|
||||
|
||||
func credCommands() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "credential",
|
||||
Aliases: []string{"cred"},
|
||||
Usage: "Perform repository credential operations.",
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "add",
|
||||
Usage: "Add a credential to the remote manager.",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "file,f",
|
||||
Usage: "A JSON file with credential information.",
|
||||
},
|
||||
},
|
||||
ArgsUsage: "CREDENTIAL",
|
||||
},
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "List the credentials on the remote manager.",
|
||||
ArgsUsage: "",
|
||||
},
|
||||
{
|
||||
Name: "remove",
|
||||
Aliases: []string{"rm"},
|
||||
Usage: "Remove a credential from the remote manager.",
|
||||
ArgsUsage: "CREDENTIAL",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(deploymentCommands())
|
||||
}
|
||||
|
||||
func deploymentCommands() cli.Command {
|
||||
return cli.Command{
|
||||
// Names following form prescribed here: http://is.gd/QUSEOF
|
||||
Name: "deployment",
|
||||
Usage: "Perform deployment-centered operations.",
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "config",
|
||||
Usage: "Dump the configuration file for this deployment.",
|
||||
ArgsUsage: "DEPLOYMENT",
|
||||
},
|
||||
{
|
||||
Name: "manifest",
|
||||
Usage: "Dump the Kubernetes manifest file for this deployment.",
|
||||
ArgsUsage: "DEPLOYMENT",
|
||||
},
|
||||
{
|
||||
Name: "show",
|
||||
Aliases: []string{"info"},
|
||||
Usage: "Provide details about this deployment.",
|
||||
ArgsUsage: "",
|
||||
},
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "list all deployments, or filter by an optional pattern",
|
||||
ArgsUsage: "PATTERN",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(lintCmd())
|
||||
}
|
||||
|
||||
func lintCmd() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "lint",
|
||||
Usage: "Evaluate a chart's conformance to the specification.",
|
||||
ArgsUsage: "PATH [PATH...]",
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(redeployCommand())
|
||||
}
|
||||
|
||||
func redeployCommand() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "redeploy",
|
||||
Usage: "update an existing deployment with a new configuration.",
|
||||
ArgsUsage: "DEPLOYMENT",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "config,f",
|
||||
Usage: "Configuration values file.",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(releaseCmd())
|
||||
}
|
||||
|
||||
func releaseCmd() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "release",
|
||||
Usage: "Release a chart to a remote chart repository.",
|
||||
ArgsUsage: "PATH",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "destination,u",
|
||||
Usage: "Destination URL to which this will be POSTed.",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(repoCommands())
|
||||
}
|
||||
|
||||
func repoCommands() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "repository",
|
||||
Aliases: []string{"repo"},
|
||||
Usage: "Perform repository operations.",
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "add",
|
||||
Usage: "Add a repository to the remote manager.",
|
||||
ArgsUsage: "REPOSITORY",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "cred",
|
||||
Usage: "The name of the credential.",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "show",
|
||||
Usage: "Show the repository details for a given repository.",
|
||||
ArgsUsage: "REPOSITORY",
|
||||
},
|
||||
{
|
||||
Name: "list",
|
||||
Usage: "List the repositories on the remote manager.",
|
||||
ArgsUsage: "",
|
||||
},
|
||||
{
|
||||
Name: "remove",
|
||||
Aliases: []string{"rm"},
|
||||
Usage: "Remove a repository from the remote manager.",
|
||||
ArgsUsage: "REPOSITORY",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
addCommands(statusCommand())
|
||||
}
|
||||
|
||||
func statusCommand() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "status",
|
||||
Usage: "Provide status on a named deployment.",
|
||||
ArgsUsage: "DEPLOYMENT",
|
||||
}
|
||||
}
|
Loading…
Reference in new issue