Skip to content

Commit

Permalink
Merge pull request #200 from thepower:fix/clI_container_upload_fix
Browse files Browse the repository at this point in the history
container upload: add examples, update desc
  • Loading branch information
jackkru69 authored Dec 17, 2024
2 parents 27108a0 + 569b21c commit df7afc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-tigers-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@thepowereco/cli': patch
---

container upload: add examples, update desc
9 changes: 7 additions & 2 deletions packages/cli/src/commands/container/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit df7afc8

Please sign in to comment.