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

Commit60653bb

Browse files
authored
fix(cli): allow template name length of 32 in template push and create (#11915)
1 parent86e3325 commit60653bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎cli/templatecreate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ func (r *RootCmd) templateCreate() *clibase.Cmd {
7979
returnerr
8080
}
8181

82-
ifutf8.RuneCountInString(templateName)>31 {
83-
returnxerrors.Errorf("Template name must beless than 32 characters")
82+
ifutf8.RuneCountInString(templateName)>32 {
83+
returnxerrors.Errorf("Template name must beno more than 32 characters")
8484
}
8585

8686
_,err=client.TemplateByName(inv.Context(),organization.ID,templateName)

‎cli/templatepush.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ func (r *RootCmd) templatePush() *clibase.Cmd {
5656
returnerr
5757
}
5858

59-
ifutf8.RuneCountInString(name)>=32 {
60-
returnxerrors.Errorf("Template name must beless than 32 characters")
59+
ifutf8.RuneCountInString(name)>32 {
60+
returnxerrors.Errorf("Template name must beno more than 32 characters")
6161
}
6262

6363
varcreateTemplatebool

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp