Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelvaMan committed Apr 20, 2024
1 parent 753e41f commit 144068e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const (
var generateCmd = &cobra.Command{
Use: "generate",
Short: "Generate code",
Long: "Generate code for calling database stored procedures",
Long: `
Generate code for calling stored procedures.
Procedures can be loaded from database or from provided file.
Output folder and templates are defined in configuration file.
For more information, see github.com/keenmate/db-gen
`,
Run: func(cmd *cobra.Command, args []string) {
common.BindBoolFlag(cmd, keyDebug)
common.BindBoolFlag(cmd, keyUseRoutinesFile)
Expand Down
2 changes: 1 addition & 1 deletion cmd/getRoutines.go → cmd/routines.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var getRoutinesCmd = &cobra.Command{
Use: "routines [out]",
Short: "Get routines",
Long: "Get routines from database to generate later",
Long: "Get routines from database and save them to file to generate later",
Run: func(cmd *cobra.Command, args []string) {
common.BindBoolFlag(cmd, keyDebug)
common.BindBoolFlag(cmd, keyUseRoutinesFile)
Expand Down

0 comments on commit 144068e

Please sign in to comment.