File tree Expand file tree Collapse file tree
pkg/i18n/translations/drycc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package parser
33import (
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
4653as a new release. If a Procfile or drycc.yaml is present in the current directory,
Original file line number Diff line number Diff line change @@ -1677,6 +1677,10 @@ msgstr ""
16771677msgid "Volume mounts in format 'volume:path'"
16781678msgstr ""
16791679
1680+ #: internal/parser/builds.go:42
1681+ msgid "default container image"
1682+ msgstr ""
1683+
16801684#: internal/parser/builds.go:44
16811685msgid "imports an image and deploys as a new release"
16821686msgstr ""
Original file line number Diff line number Diff line change @@ -1670,6 +1670,10 @@ msgstr ""
16701670msgid "Volume mounts in format 'volume:path'"
16711671msgstr ""
16721672
1673+ #: internal/parser/builds.go:42
1674+ msgid "default container image"
1675+ msgstr ""
1676+
16731677#: internal/parser/builds.go:44
16741678msgid "imports an image and deploys as a new release"
16751679msgstr ""
Original file line number Diff line number Diff line change @@ -1750,6 +1750,10 @@ msgstr "查看应用信息"
17501750msgid "Volume mounts in format 'volume:path'"
17511751msgstr "卷挂载格式 '卷名:挂载路径'"
17521752
1753+ #: internal/parser/builds.go:42
1754+ msgid "default container image"
1755+ msgstr "默认的容器镜像"
1756+
17531757#: internal/parser/builds.go:44
17541758msgid "imports an image and deploys as a new release"
17551759msgstr "导入镜像并部署为新版本"
You can’t perform that action at this time.
0 commit comments