diff --git a/cmd/add.go b/cmd/add.go index e86f726..6b069ae 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -14,9 +14,7 @@ import ( var addCmd = &cobra.Command{ Use: "add", Short: "This command allows you to add a new project and its path", - Long: `This command allows you to add a new project and its path - example: gproject add name_project path_project - or to add a project with the current path: gproject add .`, + Long: `This command allows you to add a new project and its path. `, Run: func(cmd *cobra.Command, args []string) { //init struct project var project Project diff --git a/cmd/go.go b/cmd/go.go index 9a37c8b..1e0f042 100644 --- a/cmd/go.go +++ b/cmd/go.go @@ -14,8 +14,7 @@ import ( var goCmd = &cobra.Command{ Use: "go", Short: "This command will allow you to move to the repository of a project that you have chosen", - Long: `This command will allow you to move to the repository of a project that you have chosen - example: gproject go projectA`, + Long: `This command will allow you to move to the repository of a project that you have chosen`, Run: func(cmd *cobra.Command, args []string) { if args == nil && args[0] == "" || len(args) > 1 || len(args) < 1 { log.Fatal("Command error") diff --git a/cmd/ls.go b/cmd/ls.go index 9ea7bc5..58810d7 100644 --- a/cmd/ls.go +++ b/cmd/ls.go @@ -12,9 +12,8 @@ import ( // ls allows you to list all the projects saved in the path.json file var lsCmd = &cobra.Command{ Use: "ls", - Short: "This command will list all the projects saved in the path.json file", - Long: `This command will list all the project saved in the path.json file - example: gproject ls`, + Short: "This command will list all the projects saved in the path.json file.", + Long: `This command will list all the project saved in the path.json file.`, Run: func(cmd *cobra.Command, args []string) { //the environment variable is stored in a variable in order to create and find the path.json file in the directory where the app is located;w filEnv := os.Getenv("goproject") @@ -37,5 +36,4 @@ var lsCmd = &cobra.Command{ func init() { rootCmd.AddCommand(lsCmd) - }