Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🔨 Update flag exclusions for 'network' flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Nov 1, 2023
1 parent bcdd19c commit 066b0ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ OPTIONS
--auto-start-lisk-core-v4 Start Lisk Core v4 automatically. Defaults to false. When using this flag, kindly open another terminal window to stop Lisk Core v3.1.x for when the migrator prompts.
--snapshot-path=snapshot-path Local filepath to the state snapshot to run the migration offline. It could point either to a directory or a tarball (tar.gz).
--snapshot-path=snapshot-path Local filepath to the state snapshot to run the migration offline. It could either point to a directory or a tarball (tar.gz).
--snapshot-url=snapshot-url URL to download the state snapshot from. Use to run the migration offline. URL must end with tar.gz.
Expand Down
18 changes: 12 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,18 @@ class LiskMigrator extends Command {
description:
'Path where the Lisk Core v3.x instance is running. When not supplied, defaults to the default data directory for Lisk Core.',
}),
config: flagsParser.string({
char: 'c',
required: false,
description: 'Custom configuration file path for Lisk Core v3.1.x.',
}),
'snapshot-height': flagsParser.integer({
char: 's',
required: true,
env: 'SNAPSHOT_HEIGHT',
description:
'The height at which re-genesis block will be generated. Can be specified with SNAPSHOT_HEIGHT as well.',
}),
config: flagsParser.string({
char: 'c',
required: false,
description: 'Custom configuration file path for Lisk Core v3.1.x.',
}),
'auto-migrate-config': flagsParser.boolean({
required: false,
env: 'AUTO_MIGRATE_CONFIG',
Expand All @@ -127,7 +127,7 @@ class LiskMigrator extends Command {
required: false,
env: 'SNAPSHOT_PATH',
description:
'Local filepath to the state snapshot to run the migration offline. It could point either to a directory or a tarball (tar.gz).',
'Local filepath to the state snapshot to run the migration offline. It could either point to a directory or a tarball (tar.gz).',
dependsOn: ['network'],
exclusive: ['snapshot-url'],
}),
Expand All @@ -146,6 +146,12 @@ class LiskMigrator extends Command {
description:
"Network to be considered for the migration. Depends on the '--snapshot-path' flag.",
options: ['mainnet', 'testnet'],
exclusive: [
'lisk-core-v3-data-path',
'config',
'auto-migrate-config',
'auto-start-lisk-core-v4',
],
}),
};

Expand Down

0 comments on commit 066b0ac

Please sign in to comment.