Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved a bit the messages and help we are giving to the user. #39

Merged
merged 1 commit into from
Nov 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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