Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d5efc7

Browse files
committed
fixup! feat(cli): implement --tar in template push and create
1 parentf7bd5b7 commit7d5efc7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎cli/templatepush.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func (pf *templateUploadFlags) upload(cmd *cobra.Command, client *codersdk.Clien
7171

7272
func (pf*templateUploadFlags)templateName(args []string) (string,error) {
7373
ifpf.stdin() {
74+
// Can't infer name from directory if none provided.
7475
iflen(args)==0 {
7576
return"",xerrors.New("template name argument must be provided")
7677
}

‎cli/templatepush_test.go‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ func TestTemplatePush(t *testing.T) {
225225

226226
template:=coderdtest.CreateTemplate(t,client,user.OrganizationID,version.ID)
227227

228-
// Don't pass the name of the template, it should use the
229-
// directory of the source.
230228
cmd,root:=clitest.New(
231229
t,"templates","push","--directory","-",
232230
"--test.provisioner",string(database.ProvisionerTypeEcho),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp