Skip to content

Commit

Permalink
Merge pull request #30 from retail-ai-inc/fix/cmd-pkg-name
Browse files Browse the repository at this point in the history
changed cmd to commands
  • Loading branch information
tanvir-retailai authored Jan 13, 2022
2 parents c23ee3c + 56ff9e1 commit 4f5f6a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 76 deletions.
67 changes: 0 additions & 67 deletions internal/project/commands/init_command.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**#bean*/ /*#bean.replace({{ .Copyright }})**/
package cmd
package commands

import (
"log"
Expand All @@ -12,10 +12,10 @@ import (

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "/**#bean*/ /*#bean.replace({{ .PkgName }})**/ command [args...]",
Short: "The CLI of /**#bean*/ /*#bean.replace({{ .PkgName }})**/",
Long: `The starting point of /**#bean*/ /*#bean.replace({{ .PkgName }})**/, contains some
useful command like start...`,
Use: "{{ .PkgName }} command [args...]",
Short: "The CLI of {{ .PkgName }}",
Long: `The starting point of {{ .PkgName }}, contains some useful commands.
For example: start...`,
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**#bean*/ /*#bean.replace({{ .Copyright }})**/
package cmd
package commands

import (
/**#bean*/
Expand Down
6 changes: 3 additions & 3 deletions internal/project/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main

import (
/**#bean*/
"demo/cmd"
/*#bean.replace("{{ .PkgName }}/cmd")**/)
"demo/commands"
/*#bean.replace("{{ .PkgName }}/commands")**/)

func main() {
cmd.Execute()
commands.Execute()
}

0 comments on commit 4f5f6a5

Please sign in to comment.