Skip to content

Commit df7afc8

Browse files
authored
Merge pull request #200 from thepower:fix/clI_container_upload_fix
container upload: add examples, update desc
2 parents 27108a0 + 569b21c commit df7afc8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.changeset/forty-tigers-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@thepowereco/cli': patch
3+
---
4+
5+
container upload: add examples, update desc

packages/cli/src/commands/container/upload.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export default class ContainerUpload extends BaseCommand {
4545

4646
static override examples = [
4747
'<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files',
48-
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -p ./files'
48+
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files',
49+
'<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files --chooseProvider',
50+
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files --ignoreUploadList "[.git,node_modules,logs]"',
51+
'<%= config.bin %> <%= command.id %> --containerId 456 --containerKeyFilePath ./key.pem --containerPassword ethpassword --filesPath ./upload --isEth',
52+
'<%= config.bin %> <%= command.id %> -i 789 -f ./container-key.pem -s "securepassword" -t ./files --ordersScAddress 0xOrder123 --providerScAddress 0xProvider456',
53+
'<%= config.bin %> <%= command.id %> --containerId 321 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./data --chain 5'
4954
]
5055

5156
static override flags = {
@@ -102,7 +107,7 @@ export default class ContainerUpload extends BaseCommand {
102107
}),
103108
ignoreUploadList: Flags.string({
104109
char: 'g',
105-
description: 'Ignore upload list'
110+
description: 'Ignore upload list (e.g. "[.git,node_modules,logs]")'
106111
}),
107112
isEth: Flags.boolean({
108113
char: 'e',

0 commit comments

Comments
 (0)