diff --git a/README.md b/README.md index b8dbdf4..c45fa04 100644 --- a/README.md +++ b/README.md @@ -351,6 +351,18 @@ Create sub-authority (custom owner for sub-authority): $ laconic registry authority reserve kube.laconic --owner laconic15za32wly5exgcrt2zfr8php4ya49n5y7masu7k ``` +Get all the authorities: + +```bash +$ laconic registry authority get +``` + +Get all the authorities by owner: + +```bash +$ laconic registry authority get --owner laconic1zayjut6pd4xy9dguut56v55hktzmeq6r777hmd +``` + Set name: ```bash diff --git a/package.json b/package.json index b066699..458885d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "typescript": "^4.6.3" }, "dependencies": { - "@cerc-io/registry-sdk": "^0.2.5", + "@cerc-io/registry-sdk": "^0.2.6", "fs-extra": "^10.1.0", "js-yaml": "^3.14.1", "lodash": "^4.17.21", diff --git a/src/cmds/registry-cmds/authority-cmds/get.ts b/src/cmds/registry-cmds/authority-cmds/list.ts similarity index 95% rename from src/cmds/registry-cmds/authority-cmds/get.ts rename to src/cmds/registry-cmds/authority-cmds/list.ts index cce4912..cf7e018 100644 --- a/src/cmds/registry-cmds/authority-cmds/get.ts +++ b/src/cmds/registry-cmds/authority-cmds/list.ts @@ -1,10 +1,11 @@ import { Arguments } from 'yargs'; import assert from 'assert'; + import { Registry } from '@cerc-io/registry-sdk'; import { getConfig, getConnectionInfo, queryOutput } from '../../../util'; -export const command = 'get [owner]'; +export const command = 'list [owner]'; export const desc = 'List authorities (optionally by owner).'; diff --git a/yarn.lock b/yarn.lock index ace5fad..62ac42b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -302,10 +302,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@cerc-io/registry-sdk@^0.2.5": - version "0.2.5" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.5/registry-sdk-0.2.5.tgz#9ca19fecb2923520dd6a19946c309ecb2ec780a2" - integrity sha512-/KXAYf9gStaX/rRBMCEeDCexEIpTOFHeHzMK9B3xfCT+SyYZE9WC9GpX299LzBYJKKPsb0/JvnDfip9S1igJtA== +"@cerc-io/registry-sdk@^0.2.6": + version "0.2.6" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.6/registry-sdk-0.2.6.tgz#af8a5844bdb742a01d322a9d93ace90d35aad37e" + integrity sha512-Z2rneeoPLTJk9aBTqMrR9WPKfPQZhNWShI4IYOb7kzoIorp3eD8mEals0I5bVjzStjapw/5RKf8lVnDCX9I4iA== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1"