🎨 大部分的 make 指令
This commit is contained in:
25
internal/cmd/install.go
Normal file
25
internal/cmd/install.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func installCmd() *cobra.Command {
|
||||
_cmd := &cobra.Command{
|
||||
Use: "install",
|
||||
Short: "Install the project",
|
||||
Long: `Install the built project to the specified location.`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runInstall(args)
|
||||
},
|
||||
}
|
||||
|
||||
return _cmd
|
||||
}
|
||||
|
||||
func runInstall(args []string) error {
|
||||
fmt.Println("Running install command...")
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user