Skip to content

Commit

Permalink
修改模板
Browse files Browse the repository at this point in the history
  • Loading branch information
baowk committed Aug 18, 2023
1 parent 2e3add4 commit 235026a
Show file tree
Hide file tree
Showing 16 changed files with 184 additions and 917 deletions.
66 changes: 0 additions & 66 deletions cmd/migrate/migration/init.go

This file was deleted.

8 changes: 0 additions & 8 deletions cmd/migrate/migration/version-local/doc.go

This file was deleted.

109 changes: 0 additions & 109 deletions cmd/migrate/server.go

This file was deleted.

6 changes: 3 additions & 3 deletions cmd/module/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
var (
modName string
StartCmd = &cobra.Command{
Use: "module",
Short: "Create a new module,Path:${project}/app/",
Use: "new",
Short: "Create a new module,Path:${project}/module/",
Long: "Use when you need to create a new module",
Example: "dilu module -n yourname",
Example: "dilu new -n yourname",
Run: func(cmd *cobra.Command, args []string) {
run()
},
Expand Down
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func init() {
rootCmd.AddCommand(start.StartCmd)
rootCmd.AddCommand(version.StartCmd)
rootCmd.AddCommand(module.StartCmd)
//rootCmd.AddCommand(migrate.StartCmd)
}

func Execute() {
Expand Down
5 changes: 2 additions & 3 deletions cmd/version/server.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package version

import (
"dilu/common/consts"
"fmt"

"github.com/baowk/dilu-core/core"

"github.com/spf13/cobra"
)

Expand All @@ -23,6 +22,6 @@ var (
)

func run() error {
fmt.Println(core.Version)
fmt.Println(consts.Version)
return nil
}
4 changes: 4 additions & 0 deletions common/consts/const.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package consts

const (
Version = "V0.0.1"
)

const (
DB_DEMO = "demo"
)
Loading

0 comments on commit 235026a

Please sign in to comment.