mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-22 03:14:06 -05:00
21 lines
498 B
Go
21 lines
498 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewDeployCommand creates the parent `ods deploy` command. Subcommands hang
|
|
// off it (e.g. `ods deploy edge`) and represent ad-hoc deployment workflows.
|
|
func NewDeployCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "deploy",
|
|
Short: "Trigger ad-hoc deployments",
|
|
Long: "Trigger ad-hoc deployments to Onyx-managed environments.",
|
|
}
|
|
|
|
cmd.AddCommand(NewDeployEdgeCommand())
|
|
cmd.AddCommand(NewDeployWikiCommand())
|
|
|
|
return cmd
|
|
}
|