Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ Delete key-values

```
USAGE
$ aio app state delete [KEYS...] [--json] [--region amer|emea|apac] [--match <value>] [--force]
$ aio app state delete [KEYS...] [--json] [--region amer|emea|apac|aus] [--match <value>] [--force]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for next time, this is re-gen during publish. But you can also generate it using npm run prepack


ARGUMENTS
KEYS... keys to delete. Above 5 keys, you will be prompted for confirmation
[KEYS...] keys to delete. Above 5 keys, you will be prompted for confirmation

FLAGS
--force [use with caution!] force delete, no safety prompt
--match=<value> [use with caution!] deletes ALL key-values matching the provided glob-like pattern
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
<options: amer|emea|apac>
<options: amer|emea|apac|aus>

GLOBAL FLAGS
--json Format output as json.
Expand Down Expand Up @@ -76,14 +76,14 @@ Get a key-value

```
USAGE
$ aio app state get KEY [--json] [--region amer|emea|apac]
$ aio app state get KEY [--json] [--region amer|emea|apac|aus]

ARGUMENTS
KEY State key

FLAGS
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
<options: amer|emea|apac>
<options: amer|emea|apac|aus>

GLOBAL FLAGS
--json Format output as json.
Expand All @@ -105,12 +105,12 @@ List key-values

```
USAGE
$ aio app state list [--json] [--region amer|emea|apac] [-m <value>]
$ aio app state list [--json] [--region amer|emea|apac|aus] [-m <value>]

FLAGS
-m, --match=<value> [default: *] Glob-like pattern to filter keys
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
<options: amer|emea|apac>
<options: amer|emea|apac|aus>

GLOBAL FLAGS
--json Format output as json.
Expand Down Expand Up @@ -139,7 +139,7 @@ Put a key-value

```
USAGE
$ aio app state put KEY VALUE [--json] [--region amer|emea|apac] [-t <value>]
$ aio app state put KEY VALUE [--json] [--region amer|emea|apac|aus] [-t <value>]

ARGUMENTS
KEY State key
Expand All @@ -148,7 +148,7 @@ ARGUMENTS
FLAGS
-t, --ttl=<value> Time to live in seconds. Default is 86400 (24 hours), max is 31536000 (1 year).
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
<options: amer|emea|apac>
<options: amer|emea|apac|aus>

GLOBAL FLAGS
--json Format output as json.
Expand All @@ -172,11 +172,11 @@ Display stats

```
USAGE
$ aio app state stats [--json] [--region amer|emea|apac]
$ aio app state stats [--json] [--region amer|emea|apac|aus]

FLAGS
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
<options: amer|emea|apac>
<options: amer|emea|apac|aus>

GLOBAL FLAGS
--json Format output as json.
Expand All @@ -199,7 +199,7 @@ USAGE
$ aio help [COMMAND...] [-n]

ARGUMENTS
COMMAND... Command to show help for.
[COMMAND...] Command to show help for.

FLAGS
-n, --nested-commands Include all nested commands in the output.
Expand All @@ -208,7 +208,7 @@ DESCRIPTION
Display help for aio.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.16/src/commands/help.ts)_
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
<!-- commandsstop -->

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion src/BaseCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ BaseCommand.flags = {
region: Flags.string({
description: 'State region. Defaults to \'AIO_STATE_REGION\' env or \'amer\' if neither is set.',
required: false,
options: ['amer', 'emea', 'apac']
options: ['amer', 'emea', 'apac', 'aus']
})
}

Expand Down
2 changes: 1 addition & 1 deletion test/BaseCommand.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(BaseCommand.flags).sort()).toEqual(['region'])
expect(BaseCommand.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(BaseCommand.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(BaseCommand.enableJsonFlag).toEqual(true)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/commands/app/state/delete.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(Delete.flags).sort()).toEqual(['force', 'match', 'region'])
expect(Delete.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(Delete.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(Delete.enableJsonFlag).toEqual(true)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/commands/app/state/get.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(Get.flags).sort()).toEqual(['region'])
expect(Get.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(Get.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(Get.enableJsonFlag).toEqual(true)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/commands/app/state/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(List.flags).sort()).toEqual(['match', 'region'])
expect(List.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(List.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(List.enableJsonFlag).toEqual(true)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/commands/app/state/put.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(Put.flags).sort()).toEqual(['region', 'ttl'])
expect(Put.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(Put.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(Put.enableJsonFlag).toEqual(true)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/commands/app/state/stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('prototype', () => {
})
test('flags', () => {
expect(Object.keys(Stats.flags).sort()).toEqual(['region'])
expect(Stats.flags.region.options).toEqual(['amer', 'emea', 'apac'])
expect(Stats.flags.region.options).toEqual(['amer', 'emea', 'apac', 'aus'])
expect(Stats.enableJsonFlag).toEqual(true)
})
})
Expand Down