feat: 🏡 make apps
This commit is contained in:
26
internal/cmd/makecmd/seafile.go
Normal file
26
internal/cmd/makecmd/seafile.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package makecmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"yizhisec.com/hsv2/forge/internal/controller/maker"
|
||||
)
|
||||
|
||||
func Seafile() *cobra.Command {
|
||||
|
||||
var (
|
||||
storage int
|
||||
)
|
||||
|
||||
_cmd := &cobra.Command{
|
||||
Use: "seafile",
|
||||
Short: "make seafile dependency",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker()
|
||||
return mk.Seafile(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
||||
_cmd.Flags().IntVar(&storage, "storage-size", 50, "指定 seafile 空间大小(单位GB)")
|
||||
|
||||
return _cmd
|
||||
}
|
||||
Reference in New Issue
Block a user