提交
This commit is contained in:
27
cool-tools/internal/cmd/dump.go
Normal file
27
cool-tools/internal/cmd/dump.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/os/gcmd"
|
||||
"github.com/gogf/gf/v2/os/gres"
|
||||
)
|
||||
|
||||
var (
|
||||
Dump = &gcmd.Command{
|
||||
Name: "dump",
|
||||
Usage: "cool-tools dump",
|
||||
Brief: "查看打包的资源文件",
|
||||
Description: "查看打包的资源文件",
|
||||
Arguments: []gcmd.Argument{},
|
||||
Func: func(ctx context.Context, parser *gcmd.Parser) (err error) {
|
||||
gres.Dump()
|
||||
return nil
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
// init
|
||||
func init() {
|
||||
Main.AddCommand(Dump)
|
||||
}
|
||||
Reference in New Issue
Block a user