You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/cmd/helm/list.go

27 lines
462 B

package main
import (
"github.com/codegangsta/cli"
"github.com/kubernetes/deployment-manager/pkg/format"
)
func init() {
addCommands(listCmd())
}
func listCmd() cli.Command {
return cli.Command{
Name: "list",
Usage: "Lists the deployments in the cluster",
Action: func(c *cli.Context) { run(c, list) },
}
}
func list(c *cli.Context) error {
list, err := client(c).ListDeployments()
if err != nil {
return err
}
return format.YAML(list)
}