提交
This commit is contained in:
25
cool-tools/internal/cmd/install.go
Normal file
25
cool-tools/internal/cmd/install.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/cool-team-official/cool-admin-go/cool-tools/internal/service"
|
||||
"github.com/gogf/gf/v2/os/gcmd"
|
||||
)
|
||||
|
||||
var (
|
||||
Install = gcmd.Command{
|
||||
Name: "install",
|
||||
Usage: "cool-tools install",
|
||||
Brief: "Install cool-tools to the system.",
|
||||
Func: func(ctx context.Context, parser *gcmd.Parser) (err error) {
|
||||
err = service.Install.Run(ctx)
|
||||
return
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
// init
|
||||
func init() {
|
||||
Main.AddCommand(&Install)
|
||||
}
|
||||
Reference in New Issue
Block a user