22 lines
366 B
Go
22 lines
366 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"yizhisec.com/hsv2/forge/internal/cmd/installcmd"
|
|
)
|
|
|
|
func installCmd() *cobra.Command {
|
|
_cmd := &cobra.Command{
|
|
Use: "install",
|
|
Short: "Install the project",
|
|
Long: `Install the built project to the specified location.`,
|
|
}
|
|
|
|
_cmd.AddCommand(
|
|
installcmd.Check(),
|
|
installcmd.Prepare(),
|
|
)
|
|
|
|
return _cmd
|
|
}
|