🏗️ move make sub-cmd to sub-dir
This commit is contained in:
20
internal/cmd/makecmd/configmap.go
Normal file
20
internal/cmd/makecmd/configmap.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package makecmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"yizhisec.com/hsv2/forge/internal/controller/maker"
|
||||
)
|
||||
|
||||
func ConfigMap() *cobra.Command {
|
||||
_cmd := &cobra.Command{
|
||||
Use: "configmap",
|
||||
Aliases: []string{"cm"},
|
||||
Short: "构建 ConfigMap",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker()
|
||||
return mk.ConfigMap(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
||||
return _cmd
|
||||
}
|
||||
Reference in New Issue
Block a user