Repository navigation
fix(cli): drop cache:purge --prefix, let --port beat PORT, and note the 24h server-log limit - #304
Open
SakshiKoli-CS wants to merge 5 commits into
Open
SakshiKoli-CS wants to merge 5 commits into
SakshiKoli-CS wants to merge 5 commits into
Conversation
…prefix form
--prefix only worked alongside --path, a flag-under-a-flag that the
reference had to explain twice. Ending the path with /* already sends the
same request, { path: "/blog", isPrefix: true }, in one call, so --prefix
is removed and is now refused as an unknown flag, exit 2, before any
request. The interactive "Purge everything under this path?" question
stays: it is a prompt, not a flag.
The --path help no longer offers /* for the whole site; whole-site purges
are documented through --hosts. onlyWithFlag had no other caller and goes
with it.
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
serve read process.env.PORT || flags.port, so a PORT left in the shell silently overrode the port the user typed, and --help never mentioned PORT. The flag now declares env: 'PORT', so oclif applies the order every other flag has - the flag, then PORT, then 3000 - and --help shows "[default: 3000, env: PORT]". An empty PORT falls through to 3000; a whitespace or out-of-range PORT is still refused with the invalid-port message. This restores af781e3, which bf9a139 reverted to match V1; the change from V1 goes in the V2 release notes. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The 24-hour lookback only surfaced at run time, as the clamp warning. --since now says so up front, and the window formats list drops 2d, which can never return two days of server logs. 2d still parses. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Only the three command sections this change touches; the rest of the generated README drift is left for its own change. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
rules.ts, rules.test.ts, logs.inputs.test.ts and README.md already carry entries; editing them changed their checksums, so Talisman re-flagged the existing "key"-word false positives (keys.map(...), oneOfMessage(keys, ...)). No new pattern is allowed. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: CL-8965
What
Brings three commands' help in line with the public V2 command reference.
launch:cache:purge:--prefixremoved. It only worked alongside--path. Ending the path with/*already sends the same request ({ path: "/blog", isPrefix: true }), so that is now the only way to ask for a prefix match.--prefixis refused as an unknown flag (exit 2) before any request is sent. The interactive "Purge everything under this path?" question stays, because it is a prompt, not a flag. The--pathhelp no longer offers/*for the whole site; the docs point to--hostsfor that.onlyWithFlaghad no other caller, so it is removed too.launch:functions:serve: an explicit--portnow beatsPORT. Before,process.env.PORT || flags.portlet aPORTleft in the shell silently override the port you typed, and--helpnever mentioned it. The flag now declaresenv: 'PORT', so oclif applies the usual order (flag, thenPORT, then 3000), and--helpshows[default: 3000, env: PORT]. An emptyPORTfalls back to 3000. A whitespace or out-of-rangePORTis still refused. This restoresaf781e3, whichbf9a139reverted to match V1.launch:logs:get:--sincehelp mentions the 24-hour server-log limit, and the listed formats drop2d, since a two-day window can never return two days of logs.2dstill parses.Release notes
launch:cache:purge --prefixwas removed. Use--path "/blog/*"instead.launch:functions:serve:--portnow takes priority over thePORTenvironment variable. V1 did the opposite.Tests
--prefixis rejected with exit 2 and no request is sent.PORT,PORTis used when no flag is given, an emptyPORTfalls back to 3000, and invalidPORTvalues are rejected.--sincehelp text.npm test: 201 suites, 4091 tests, all passing.npm run lint: clean.tsc --noEmit: clean.#claude_code#
🤖 Generated with Claude Code