mirror of https://github.com/databricks/cli.git
22 lines
441 B
Go
22 lines
441 B
Go
|
package labs
|
||
|
|
||
|
import (
|
||
|
"github.com/databricks/cli/cmd/labs/project"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
func newInstallCommand() *cobra.Command {
|
||
|
return &cobra.Command{
|
||
|
Use: "install NAME",
|
||
|
Args: cobra.ExactArgs(1),
|
||
|
Short: "Installs project",
|
||
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||
|
inst, err := project.NewInstaller(cmd, args[0])
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return inst.Install(cmd.Context())
|
||
|
},
|
||
|
}
|
||
|
}
|