From 9a3dc401ee0caa0253ae884c9183f5a9d72ae681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Levilain?= Date: Fri, 5 Sep 2025 10:37:29 +0200 Subject: [PATCH 1/2] fix(cli): short options are required to be double-dashed --- src/cli/data.ts | 4 ++-- src/cli/index.ts | 2 +- src/cli/utils.ts | 2 +- src/sdk/runner.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cli/data.ts b/src/cli/data.ts index e6f3401..8111387 100644 --- a/src/cli/data.ts +++ b/src/cli/data.ts @@ -381,7 +381,7 @@ export default function register(services: Services, name = 'data') { utils.addDatastoreOptions(c, services); - c.option('-ids, --ids ', 'IDs to import in the file') + c.option('--ids ', 'IDs to import in the file') .addOption( new Option('--format ', 'Response format').choices([ 'json', @@ -401,7 +401,7 @@ export default function register(services: Services, name = 'data') { utils.addDatastoreOptions(c, services); - c.option('-ids, --ids ', 'IDs to import in the file') + c.option('--ids ', 'IDs to import in the file') .addOption( new Option('--format ', 'Response format').choices([ 'json', diff --git a/src/cli/index.ts b/src/cli/index.ts index ee384da..cad14a4 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -102,7 +102,7 @@ function addDatastoreOptions(h: Command) { const dsNames = Array.from(datastores.keys()); h.addOption( - new Option('-ds, --datastore ', 'Datastore to use') + new Option('--ds, --datastore ', 'Datastore to use') .default(dsNames[0] || 'default') .choices(dsNames.length === 0 ? ['default'] : dsNames), ); diff --git a/src/cli/utils.ts b/src/cli/utils.ts index 514ff1d..9f2fc8a 100644 --- a/src/cli/utils.ts +++ b/src/cli/utils.ts @@ -37,7 +37,7 @@ export function addDatastoreOptions(program: Command, services: Services) { const dsNames = Array.from(services.datastores.keys()); program.addOption( - new Option('-ds, --datastore ', 'Datastore to use') + new Option('--ds, --datastore ', 'Datastore to use') .default(dsNames[0] || 'default') .choices(dsNames.length === 0 ? ['default'] : dsNames), ); diff --git a/src/sdk/runner.ts b/src/sdk/runner.ts index 9f30868..6bf0df0 100644 --- a/src/sdk/runner.ts +++ b/src/sdk/runner.ts @@ -910,7 +910,7 @@ export default function register(name = 'runner') { null, ) .option( - '-ptw, --processing-time-window ', + '--ptw, --processing-time-window ', 'Event processing time window', (v) => parseInt(v, 10), Infinity, @@ -922,7 +922,7 @@ export default function register(name = 'runner') { 1_000, ) .option( - '-ipr, --init-parallel-events ', + '--ipr, --init-parallel-events ', 'Initial maximal parallel events for sampling', (v) => parseInt(v, 10), 10, -- GitLab From b4677bbb747bc055b6463b0b2643a51c1389305b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Levilain?= Date: Fri, 5 Sep 2025 11:12:02 +0200 Subject: [PATCH 2/2] ci: remove shared tag --- .gitlab-ci.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aba737c..baf32e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,8 +31,6 @@ cache: prepare: stage: prepare - tags: - - shared script: - if [[ ! -d node_modules ]]; then npm ci --force; fi except: @@ -43,8 +41,6 @@ build: stage: build dependencies: - prepare - tags: - - shared script: - npm run build artifacts: @@ -59,8 +55,6 @@ test: timeout: 30 minutes dependencies: - build - tags: - - shared services: - name: rabbitmq:3 alias: rabbitmq @@ -84,8 +78,6 @@ test: sonar: stage: sonar - tags: - - shared image: name: sonarsource/sonar-scanner-cli:5.0.1 entrypoint: [''] @@ -104,8 +96,6 @@ sonar: release: stage: release - tags: - - shared before_script: - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates libssl-dev - npm install -g semantic-release @semantic-release/gitlab @semantic-release/changelog @semantic-release/git -- GitLab