Skip to content

Commit

Permalink
update in sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
Dar-rius committed Nov 7, 2022
1 parent 221dd99 commit 6cdd421
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions cmd/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 2 additions & 4 deletions cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -37,5 +36,4 @@ var lsCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(lsCmd)

}

0 comments on commit 6cdd421

Please sign in to comment.