Skip to content

Commit 4040650

Browse files
committed
Rename template update to template push
Before, there was a `template edit` AND a `template update`. The distinction between both commands was easy to forget. `push` more clearly indicates that the template's source code is being updated. It is also complimentary to existing `template pull`.
1 parent 9614bfe commit 4040650

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cli/templateupdate.go renamed to cli/templatepush.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/coder/coder/provisionersdk"
1717
)
1818

19-
func templateUpdate() *cobra.Command {
19+
func templatePush() *cobra.Command {
2020
var (
2121
directory string
2222
provisioner string
@@ -25,9 +25,9 @@ func templateUpdate() *cobra.Command {
2525
)
2626

2727
cmd := &cobra.Command{
28-
Use: "update [template]",
28+
Use: "push [template]",
2929
Args: cobra.MaximumNArgs(1),
30-
Short: "Update the source-code of a template from the current directory or as specified by flag",
30+
Short: "Push a new template version from the current directory or as specified by flag",
3131
RunE: func(cmd *cobra.Command, args []string) error {
3232
client, err := createClient(cmd)
3333
if err != nil {

cli/templates.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func templates() *cobra.Command {
2626
Command: "coder templates plan my-template",
2727
},
2828
example{
29-
Description: "Update the template. Your developers can update their workspaces",
30-
Command: "coder templates update my-template",
29+
Description: "Push an update to the template. Your developers can update their workspaces",
30+
Command: "coder templates push my-template",
3131
},
3232
),
3333
}
@@ -37,7 +37,7 @@ func templates() *cobra.Command {
3737
templateInit(),
3838
templateList(),
3939
templatePlan(),
40-
templateUpdate(),
40+
templatePush(),
4141
templateVersions(),
4242
templateDelete(),
4343
templatePull(),

0 commit comments

Comments
 (0)