Skip to content

Commit

Permalink
Add extra binaries in the setup command
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Jul 31, 2023
1 parent 28ba8e2 commit f71e2f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ This allows to use the `setup` script, making everything ready for a ZombieNet d
You can use the following arguments:

`--help` shows the different options and commands for using the Zombienet CLI.
`--binaries` or `-b`: enables providing the binaries that you want to be downloaded and installed during the setup. Possible options: `polkadot`, `polkadot-parachain`.
`--binaries` or `-b`: enables providing the binaries that you want to be downloaded and installed during the setup. Possible options: `polkadot`, `polkadot-parachain`, `polkadot-prepare-worker`, `polkadot-execute-worker`

For example:

Expand Down
11 changes: 9 additions & 2 deletions javascript/packages/cli/src/actions/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ const options: OptIf = {};
* @returns
*/
export async function setup(params: any, opts?: any) {
const POSSIBLE_BINARIES = ["polkadot", "polkadot-parachain"];
const POSSIBLE_BINARIES = [
"polkadot",
"polkadot-parachain",
"polkadot-prepare-worker",
"polkadot-execute-worker",
];

console.log(decorators.green("\n\n🧟🧟🧟 ZombieNet Setup 🧟🧟🧟\n\n"));
if (!["linux", "darwin"].includes(process.platform)) {
Expand Down Expand Up @@ -79,7 +84,9 @@ export async function setup(params: any, opts?: any) {
decorators.red(
`"${a}" is not one of the possible options for this setup and will be skipped;`,
),
decorators.green(` Valid options: polkadot polkadot-parachain`),
decorators.green(
` Valid options: polkadot polkadot-parachain polkadot-prepare-worker polkadot-execute-worker`,
),
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ program
)
.argument(
"<binaries...>",
`the binaries that you want to be downloaded, provided in a row without any separators;\nThey are downloaded in current directory and appropriate executable permissions are assigned.\nPossible options: 'polkadot', 'polkadot-parachain'\n${decorators.blue(
`the binaries that you want to be downloaded, provided in a row without any separators;\nThey are downloaded in current directory and appropriate executable permissions are assigned.\nPossible options: 'polkadot', 'polkadot-parachain', 'polkadot-prepare-worker', 'polkadot-execute-worker'\n${decorators.blue(
"zombienet setup polkadot polkadot-parachain",
)}`,
)
Expand Down

0 comments on commit f71e2f1

Please sign in to comment.