Skip to content

Commit

Permalink
Merge pull request #39 from arapulido/improve_messaging
Browse files Browse the repository at this point in the history
Improved a bit the messages and help we are giving to the user.
  • Loading branch information
ngtuna authored Nov 13, 2017
2 parents 1924f47 + 4962191 commit e9794fd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

var downCmd = &cobra.Command{
Use: "down FLAG",
Short: "uninstall KubeApps components",
Long: `uninstall KubeApps components`,
Short: "Uninstall KubeApps components.",
Long: `Uninstall KubeApps components.`,
RunE: func(cmd *cobra.Command, args []string) error {
c := kubecfg.DeleteCmd{
DefaultNamespace: "default",
Expand Down Expand Up @@ -39,5 +39,5 @@ var downCmd = &cobra.Command{

func init() {
RootCmd.AddCommand(downCmd)
downCmd.Flags().Int64("grace-period", -1, "Number of seconds given to resources to terminate gracefully. A negative value is ignored")
downCmd.Flags().Int64("grace-period", -1, "Number of seconds given to resources to terminate gracefully. A negative value is ignored.")
}
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ var (
// RootCmd is the root of cobra subcommand tree
var RootCmd = &cobra.Command{
Use: "kubeapps",
Short: "Kubeapps Installer manages to install Kubeapps components to your cluster",
Short: "kubeapps installs the Kubeapps components into your cluster",
Long: `kubeapps installs the Kubeapps components into your cluster.
Find more information at https://github.com/kubeapps/installer.`,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
out := cmd.OutOrStderr()
logrus.SetOutput(out)
Expand Down Expand Up @@ -129,5 +132,5 @@ func getHome() (string, error) {
return home, nil
}

return "", errors.New("can't get home directory")
return "", errors.New("Can't get home directory")
}
11 changes: 9 additions & 2 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ const (

var upCmd = &cobra.Command{
Use: "up FLAG",
Short: "install KubeApps components",
Long: `install KubeApps components`,
Short: "Install KubeApps components.",
Long: `Install KubeApps components.
List of components that kubeapps up installs:
- Kubeless (https://github.com/kubeless/kubeless)
- Sealed-Secrets (https://github.com/bitnami/sealed-secrets)
- Helm/Tiller (https://github.com/kubernetes/helm)
- Kubeapps Dashboard (https://github.com/kubeapps/dashboard)`,
RunE: func(cmd *cobra.Command, args []string) error {
c := kubecfg.ApplyCmd{
DefaultNamespace: "default",
Expand Down

0 comments on commit e9794fd

Please sign in to comment.