mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore(cli): rename Cmd to Command (#12616)
I think Command is cleaner and my original decision to use "Cmd" a mistake. Plus this creates better parity with cobra.
This commit is contained in:
@ -16,7 +16,7 @@ import (
|
||||
"github.com/coder/coder/v2/codersdk"
|
||||
)
|
||||
|
||||
func (r *RootCmd) templateCreate() *serpent.Cmd {
|
||||
func (r *RootCmd) templateCreate() *serpent.Command {
|
||||
var (
|
||||
provisioner string
|
||||
provisionerTags []string
|
||||
@ -34,7 +34,7 @@ func (r *RootCmd) templateCreate() *serpent.Cmd {
|
||||
uploadFlags templateUploadFlags
|
||||
)
|
||||
client := new(codersdk.Client)
|
||||
cmd := &serpent.Cmd{
|
||||
cmd := &serpent.Command{
|
||||
Use: "create [name]",
|
||||
Short: "DEPRECATED: Create a template from the current directory or as specified by flag",
|
||||
Middleware: serpent.Chain(
|
||||
|
Reference in New Issue
Block a user