Skip to content

Commit 0c20888

Browse files
committed
Fix options for compatibility with previous versions
1 parent 9268df9 commit 0c20888

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ init function.json
202202
203203
Flags:
204204
--function-name= Function name for init
205-
--download-zip Download function.zip
205+
--download Download function.zip
206206
--jsonnet render function.json as jsonnet
207207
--qualifier=QUALIFIER function version or alias
208208
--function-url create function url definition file
@@ -220,7 +220,7 @@ deploy or create function
220220
Flags:
221221
--src="." function zip archive or src dir
222222
--publish publish function
223-
--alias-name="current" alias name for publish
223+
--alias="current" alias name for publish
224224
--alias-to-latest set alias to unpublished $LATEST version
225225
--dry-run dry run
226226
--skip-archive skip to create zip archive. requires Code.S3Bucket and Code.S3Key in function

deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
type DeployOption struct {
2121
Src string `help:"function zip archive or src dir" default:"."`
2222
Publish bool `help:"publish function" default:"true"`
23-
AliasName string `help:"alias name for publish" default:"current"`
23+
AliasName string `name:"alias" help:"alias name for publish" default:"current"`
2424
AliasToLatest bool `help:"set alias to unpublished $LATEST version" default:"false"`
2525
DryRun bool `help:"dry run" default:"false"`
2626
SkipArchive bool `help:"skip to create zip archive. requires Code.S3Bucket and Code.S3Key in function definition" default:"false"`

diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
// DiffOption represents options for Diff()
2424
type DiffOption struct {
2525
Src string `help:"function zip archive or src dir" default:"."`
26-
CodeSha256 bool `help:"diff of code sha256" default:"false"`
26+
CodeSha256 bool `name:"code" help:"diff of code sha256" default:"false"`
2727
Qualifier *string `help:"the qualifier to compare"`
2828
FunctionURL string `help:"path to function-url definiton" default:"" env:"LAMBROLL_FUNCTION_URL"`
2929
Ignore string `help:"ignore diff by jq query" default:""`

init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// InitOption represents options for Init()
1919
type InitOption struct {
2020
FunctionName *string `help:"Function name for init" required:"true" default:""`
21-
DownloadZip bool `help:"Download function.zip" default:"false"`
21+
DownloadZip bool `name:"download" help:"Download function.zip" default:"false"`
2222
Jsonnet bool `default:"false" help:"render function.json as jsonnet"`
2323
Qualifier *string `help:"function version or alias"`
2424
FunctionURL bool `help:"create function url definition file" default:"false"`

0 commit comments

Comments
 (0)