Skip to content

Commit

Permalink
Always recommend run-example
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed May 3, 2023
1 parent 3355cd5 commit 0315178
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion examples/client/banPeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--peer, -p The ip of the peer to ban.
Expand Down
2 changes: 1 addition & 1 deletion examples/client/dumpStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--filepath, -f Specifies which file to dump the packages into
Expand Down
2 changes: 1 addition & 1 deletion examples/client/dumpStop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAccountList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAccountNonFinalizedTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--account, -a The account to get transactions from
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAncestors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--max-ancestors, -m Maximum amount of ancestors to get
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAnonymityRevokers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBakerList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
3 changes: 1 addition & 2 deletions examples/client/getBannedPeers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
3 changes: 1 addition & 2 deletions examples/client/getBlockChainParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockFinalizationSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockPendingUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockSpecialEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockTransactionEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
6 changes: 3 additions & 3 deletions examples/client/getBlocksAtHeightRelative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--height, Height starting from the genesis block at the genesis index.
--restrict, -r Whether to return results only from the specified genesis index (true),
or allow results from more recent genesis indices as well (false).
--genesis-index, -g The index of a (re)genesis block. The initial genesis block has index 0
and each subsequent regenesis has an incrementally higher index.
--genesis-index, -g The index of a (re)genesis block. The initial genesis block has index 0
and each subsequent regenesis has an incrementally higher index.
Options
--help, Displays this message.
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBranches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getConsensusStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ client to interact with a Concordium node, `cis2` containing examples that help
run an example call:

```shell
yarn ts-node /path/to/example.ts [opts]
yarn run-example /path/to/example.ts [opts]
```

Where opts are any arguments that the example script takes.

0 comments on commit 0315178

Please sign in to comment.