From a3faac5a9e82c03f184c3ff08093433a05fc79e1 Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Tue, 2 Apr 2024 16:58:30 +0200 Subject: [PATCH 1/2] fix: manually copy the files rather than use the postinstall hook --- .github/workflows/open-docs-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/open-docs-pr.yml b/.github/workflows/open-docs-pr.yml index 84a53e3dc..f1369d220 100644 --- a/.github/workflows/open-docs-pr.yml +++ b/.github/workflows/open-docs-pr.yml @@ -67,7 +67,7 @@ jobs: git fetch --all git checkout $COMMIT cd ../.. - ./scripts/copy-generated-docs.sh + cp -R ./submodules/developer-tooling/packages/docs/command-line-interface/* ./docs/cli/ git status git add submodules/developer-tooling From 2ef46bcdf77831605bef01cf4b0e5dc3ad58809b Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Tue, 2 Apr 2024 17:36:30 +0200 Subject: [PATCH 2/2] fix: actually generate new docs... --- packages/cli/bin/run.js | 2 +- packages/cli/tsconfig.json | 5 +- .../docs/command-line-interface/account.md | 816 ++++++++++++------ .../docs/command-line-interface/config.md | 49 +- packages/docs/command-line-interface/dkg.md | 118 ++- .../docs/command-line-interface/election.md | 231 +++-- .../docs/command-line-interface/exchange.md | 208 +++-- .../docs/command-line-interface/governance.md | 652 +++++++++----- .../command-line-interface/grandamento.md | 172 ++++ .../docs/command-line-interface/identity.md | 86 +- .../docs/command-line-interface/lockedgold.md | 129 ++- .../docs/command-line-interface/multisig.md | 72 +- .../docs/command-line-interface/network.md | 100 ++- packages/docs/command-line-interface/node.md | 23 +- .../docs/command-line-interface/oracle.md | 93 +- .../command-line-interface/releasecelo.md | 340 +++++--- .../docs/command-line-interface/reserve.md | 31 +- .../docs/command-line-interface/rewards.md | 87 +- .../docs/command-line-interface/transfer.md | 170 ++-- packages/docs/command-line-interface/utils.md | 30 + .../docs/command-line-interface/validator.md | 312 ++++--- .../command-line-interface/validatorgroup.md | 171 ++-- .../wallets/wallet-base/src/signing-utils.ts | 2 +- 23 files changed, 2704 insertions(+), 1195 deletions(-) create mode 100644 packages/docs/command-line-interface/grandamento.md create mode 100644 packages/docs/command-line-interface/utils.md diff --git a/packages/cli/bin/run.js b/packages/cli/bin/run.js index fa82e9b3c..baf82760e 100755 --- a/packages/cli/bin/run.js +++ b/packages/cli/bin/run.js @@ -2,6 +2,6 @@ // eslint-disable-next-line unicorn/prefer-top-level-await ;(async () => { - const oclif = await import('@oclif/core') + const oclif = require('@oclif/core') await oclif.execute({ development: false, dir: __dirname }) })() diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index a40f800e9..de17b9054 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -10,5 +10,8 @@ "esModuleInterop": true, "target": "es2020" }, - "include": ["src/**/*", "src/commands/dkg/DKG.json"] + "include": ["src/**/*", "src/commands/dkg/DKG.json"], + "ts-node": { + "esm": true + } } diff --git a/packages/docs/command-line-interface/account.md b/packages/docs/command-line-interface/account.md index 239e8409d..a52e6b2ce 100644 --- a/packages/docs/command-line-interface/account.md +++ b/packages/docs/command-line-interface/account.md @@ -41,28 +41,37 @@ Keep your locked Gold more secure by authorizing alternative keys to be used for ``` USAGE $ celocli account:authorize --from -r vote|validator|attestation --signature - --signer [--globalHelp] [--blsKey --blsPop ] + --signer [--gasCurrency ] [--globalHelp] [--blsKey + --blsPop ] FLAGS - -r, --role=