Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
update commands for the cli tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 3, 2019
1 parent 71ab3d6 commit c0b24cd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ import (
"github.com/spf13/viper"
)

const description = `Kamanda is a Firebase CLI Tool extender and should be used alongside it.
Kamanda provides additional functionality currently not available to via the
Firebase CLI Tool such as User Management, Cloud Firestore Management etc from the CLI.
For instance, it allows you to easily create users with custom tokens,
which is always a trick preposition.`

var cfgFile string

var rootCmd = &cobra.Command{
Use: "firebase-cli",
Use: "kamanda",
Short: "Kamanda is an extender Firebase Tools CLI",
Long: `Kamanda is a Firebase CLI Tool extender and should be used alongside it.
Kamanda provides additional functionality currently not available to via the
Firebase CLI Tool such as User Management, Cloud Firestore Management etc from the CLI.
For instance, it allows you to easily create users with custom tokens,
which is always a trick preposition.`,
Long: description,
}

func Execute() {
Expand All @@ -34,7 +36,7 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)

rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.firebase-cli.yaml)")
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.kamanda.yaml)")

rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}
Expand All @@ -51,7 +53,7 @@ func initConfig() {
}

viper.AddConfigPath(home)
viper.SetConfigName(".firebase-cli")
viper.SetConfigName(".kamanda")
}

viper.AutomaticEnv()
Expand Down

0 comments on commit c0b24cd

Please sign in to comment.