Skip to content

fix: correct positional arg usage in tests#449

Merged
jackwener merged 2 commits intojackwener:mainfrom
pi-dal:fix-cli-positional-arg-tests
Mar 26, 2026
Merged

fix: correct positional arg usage in tests#449
jackwener merged 2 commits intojackwener:mainfrom
pi-dal:fix-cli-positional-arg-tests

Conversation

@pi-dal
Copy link
Copy Markdown
Contributor

@pi-dal pi-dal commented Mar 26, 2026

Summary

  • fix the yahoo-finance extended E2E case to pass quote symbol as a positional argument
  • fix the v2ex topic E2E and smoke cases to pass topic id as a positional argument
  • align these tests with the current CLI contract shown by command help output

Verification

  • pnpm build
  • node dist/main.js yahoo-finance quote --help
  • node dist/main.js v2ex topic --help
  • node dist/main.js yahoo-finance quote --symbol AAPL (confirms --symbol is not accepted)
  • node dist/main.js v2ex topic --id 1000001 (confirms --id is not accepted)

@jackwener jackwener merged commit 232ad55 into jackwener:main Mar 26, 2026
jackwener pushed a commit to HzTTT/opencli that referenced this pull request Mar 26, 2026
* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests
jackwener pushed a commit to hanxiao790/opencli that referenced this pull request Mar 26, 2026
* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests
jackwener added a commit that referenced this pull request Mar 26, 2026
* fix(ci): include popup assets in extension release

Copy popup assets into the packaged Chrome extension zip and validate that manifest-referenced files exist before publishing the artifact.

Co-authored-by: Codex <noreply@openai.com>

* fix: restore executable permission on bin entries after tsc build (#446) (#452)

tsc does not preserve the +x bit when compiling, so after clean-dist
removes dist/ and tsc regenerates it, dist/main.js loses its executable
permission. This causes 'Permission denied' when users run 'npm run build'
in the installed directory.

Fix: read bin entries from package.json at the end of build-manifest and
chmod 0o755 them (skipped on Windows). Wrapped in try/catch so it never
breaks the build.

Closes #446

* fix: correct positional arg usage in tests (#449)

* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests

* fix(ci): script extension release packaging

---------

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: jakevin <jakevingoo@gmail.com>
Co-authored-by: pi-dal <hi@pi-dal.com>
jackwener added a commit to Xeron2000/opencli that referenced this pull request Mar 26, 2026
* fix(ci): include popup assets in extension release

Copy popup assets into the packaged Chrome extension zip and validate that manifest-referenced files exist before publishing the artifact.

Co-authored-by: Codex <noreply@openai.com>

* fix: restore executable permission on bin entries after tsc build (jackwener#446) (jackwener#452)

tsc does not preserve the +x bit when compiling, so after clean-dist
removes dist/ and tsc regenerates it, dist/main.js loses its executable
permission. This causes 'Permission denied' when users run 'npm run build'
in the installed directory.

Fix: read bin entries from package.json at the end of build-manifest and
chmod 0o755 them (skipped on Windows). Wrapped in try/catch so it never
breaks the build.

Closes jackwener#446

* fix: correct positional arg usage in tests (jackwener#449)

* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests

* fix(ci): script extension release packaging

---------

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: jakevin <jakevingoo@gmail.com>
Co-authored-by: pi-dal <hi@pi-dal.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants