Skip to content

Commit

Permalink
fix(qseow): Set default virtual proxy value for all QSEoW commands
Browse files Browse the repository at this point in the history
Fixes #580
  • Loading branch information
mountaindude committed Dec 13, 2024
1 parent 0d56b7a commit 38490de
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/lib/cli/qseow-master-item-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export function setupQseowMasterItemImportCommand(qseow) {
)
.addOption(new Option('--app-id <id>', 'Qlik Sense app ID').makeOptionMandatory().env('CTRLQ_APP_ID'))
.addOption(
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix').makeOptionMandatory().env('CTRLQ_VIRTUAL_PROXY')
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix')
.default('')
.makeOptionMandatory()
.env('CTRLQ_VIRTUAL_PROXY')
)
.addOption(
new Option(
Expand Down
5 changes: 4 additions & 1 deletion src/lib/cli/qseow-scramble-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export function setupQseowScrambleFieldCommand(qseow) {
new Option('--schema-version <string>', 'Qlik Sense engine schema version').default('12.612.0').env('CTRLQ_SCHEMA_VERSION')
)
.addOption(
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix').makeOptionMandatory().env('CTRLQ_VIRTUAL_PROXY')
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix')
.default('')
.makeOptionMandatory()
.env('CTRLQ_VIRTUAL_PROXY')
)
.addOption(
new Option(
Expand Down
5 changes: 4 additions & 1 deletion src/lib/cli/qseow-set-task-cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export function setupQseowSetTaskCustomPropertyCommand(qseow) {
new Option('--schema-version <string>', 'Qlik Sense engine schema version').default('12.612.0').env('CTRLQ_SCHEMA_VERSION')
)
.addOption(
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix').makeOptionMandatory().env('CTRLQ_VIRTUAL_PROXY')
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix')
.default('')
.makeOptionMandatory()
.env('CTRLQ_VIRTUAL_PROXY')
)
.addOption(
new Option(
Expand Down
5 changes: 4 additions & 1 deletion src/lib/cli/qseow-test-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export function setupQseowTestConnectionCommand(qseow) {
new Option('--schema-version <string>', 'Qlik Sense engine schema version').default('12.612.0').env('CTRLQ_SCHEMA_VERSION')
)
.addOption(
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix').makeOptionMandatory().env('CTRLQ_VIRTUAL_PROXY')
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix')
.default('')
.makeOptionMandatory()
.env('CTRLQ_VIRTUAL_PROXY')
)
.addOption(
new Option(
Expand Down
5 changes: 4 additions & 1 deletion src/lib/cli/qseow-visualise-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export function setupQseowVisualiseTaskCommand(qseow) {
.env('CTRLQ_PORT')
)
.addOption(
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix').makeOptionMandatory().env('CTRLQ_VIRTUAL_PROXY')
new Option('--virtual-proxy <prefix>', 'Qlik Sense virtual proxy prefix')
.default('')
.makeOptionMandatory()
.env('CTRLQ_VIRTUAL_PROXY')
)
.addOption(
new Option(
Expand Down

0 comments on commit 38490de

Please sign in to comment.