Skip to content

Commit 485fb7a

Browse files
committed
docs(workflow-cli): add builds create args
1 parent a1ac6b8 commit 485fb7a

5 files changed

Lines changed: 21 additions & 2 deletions

File tree

internal/parser/builds.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package parser
33
import (
44
"github.com/drycc/workflow-cli/internal/commands"
55
"github.com/drycc/workflow-cli/internal/completion"
6+
"github.com/drycc/workflow-cli/internal/template"
67
"github.com/drycc/workflow-cli/pkg/i18n"
78
"github.com/spf13/cobra"
89
)
@@ -39,8 +40,14 @@ func buildsCreate(cmdr *commands.DryccCmd) *cobra.Command {
3940
confirm string
4041
}
4142
cmd := &cobra.Command{
42-
Use: `create <image>`,
43-
Args: cobra.ExactArgs(1),
43+
Use: `create <image>`,
44+
Args: cobra.ExactArgs(1),
45+
Example: template.CustomExample(
46+
`drycc create docker.io/library/nginx:latest`,
47+
map[string]string{
48+
"<image>": i18n.T("default container image"),
49+
},
50+
),
4451
Short: i18n.T("imports an image and deploys as a new release"),
4552
Long: i18n.T(`Creates a new build of an application. Imports an <image> and deploys it to Drycc
4653
as a new release. If a Procfile or drycc.yaml is present in the current directory,

pkg/i18n/translations/drycc/en_US/LC_MESSAGES/cli.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,10 @@ msgstr ""
16771677
msgid "Volume mounts in format 'volume:path'"
16781678
msgstr ""
16791679

1680+
#: internal/parser/builds.go:42
1681+
msgid "default container image"
1682+
msgstr ""
1683+
16801684
#: internal/parser/builds.go:44
16811685
msgid "imports an image and deploys as a new release"
16821686
msgstr ""

pkg/i18n/translations/drycc/template.pot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,10 @@ msgstr ""
16701670
msgid "Volume mounts in format 'volume:path'"
16711671
msgstr ""
16721672

1673+
#: internal/parser/builds.go:42
1674+
msgid "default container image"
1675+
msgstr ""
1676+
16731677
#: internal/parser/builds.go:44
16741678
msgid "imports an image and deploys as a new release"
16751679
msgstr ""
61 Bytes
Binary file not shown.

pkg/i18n/translations/drycc/zh_CN/LC_MESSAGES/cli.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,10 @@ msgstr "查看应用信息"
17501750
msgid "Volume mounts in format 'volume:path'"
17511751
msgstr "卷挂载格式 '卷名:挂载路径'"
17521752

1753+
#: internal/parser/builds.go:42
1754+
msgid "default container image"
1755+
msgstr "默认的容器镜像"
1756+
17531757
#: internal/parser/builds.go:44
17541758
msgid "imports an image and deploys as a new release"
17551759
msgstr "导入镜像并部署为新版本"

0 commit comments

Comments
 (0)