From 569b21cc25eff98698273657a1a60b1db3226aaa Mon Sep 17 00:00:00 2001 From: jackkru69 Date: Tue, 17 Dec 2024 21:25:15 +0700 Subject: [PATCH] container upload: add examples, update desc --- .changeset/forty-tigers-battle.md | 5 +++++ packages/cli/src/commands/container/upload.ts | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/forty-tigers-battle.md diff --git a/.changeset/forty-tigers-battle.md b/.changeset/forty-tigers-battle.md new file mode 100644 index 0000000..876e108 --- /dev/null +++ b/.changeset/forty-tigers-battle.md @@ -0,0 +1,5 @@ +--- +'@thepowereco/cli': patch +--- + +container upload: add examples, update desc diff --git a/packages/cli/src/commands/container/upload.ts b/packages/cli/src/commands/container/upload.ts index 4343f47..11d9907 100644 --- a/packages/cli/src/commands/container/upload.ts +++ b/packages/cli/src/commands/container/upload.ts @@ -45,7 +45,12 @@ export default class ContainerUpload extends BaseCommand { static override examples = [ '<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files', - '<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -p ./files' + '<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files', + '<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files --chooseProvider', + '<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files --ignoreUploadList "[.git,node_modules,logs]"', + '<%= config.bin %> <%= command.id %> --containerId 456 --containerKeyFilePath ./key.pem --containerPassword ethpassword --filesPath ./upload --isEth', + '<%= config.bin %> <%= command.id %> -i 789 -f ./container-key.pem -s "securepassword" -t ./files --ordersScAddress 0xOrder123 --providerScAddress 0xProvider456', + '<%= config.bin %> <%= command.id %> --containerId 321 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./data --chain 5' ] static override flags = { @@ -102,7 +107,7 @@ export default class ContainerUpload extends BaseCommand { }), ignoreUploadList: Flags.string({ char: 'g', - description: 'Ignore upload list' + description: 'Ignore upload list (e.g. "[.git,node_modules,logs]")' }), isEth: Flags.boolean({ char: 'e',