Repository navigation
CL-8827 | Drop environment description from env:create, env:update and env:get - #295
Conversation
…d env:get The Launch UI never shows or edits an environment's description, and the CLI's handling of it was broken: `env:update --description ""` was treated as no flag (exit 2 alone, silently dropped when combined), and the interactive Description prompt could neither set an empty value nor clear an existing one. Match the UI instead of fixing a field nobody else exposes. - env:create and env:update no longer declare --description; passing it is oclif's unknown-flag error, and no description is sent to the API. - env:update's "Pass at least one of ..." list and its interactive field checklist no longer offer it. - env:get no longer prints a DESCRIPTION row. - Remove ENVIRONMENT_DESCRIPTION_MAX_LENGTH and description from the environment types. Project description is untouched. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…E entries The generated command reference still listed the removed flag. Hand-edit only the two env entries; project --description is unaffected. #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 |
🔒 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 |
oclif appends "\nSee more help with --help" to every parse error, so an unknown flag printed as two unpunctuated fragments: error: Nonexistent flag: --description See more help with --help reportFailure now replaces that trailing hint with a sentence on the same line: error: Nonexistent flag: --description. Run the command with --help to see its flags. Exit codes are unchanged, and oclif errors without the hint are printed as before. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
e9b8ce3
🔒 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 |
Keep oclif's error as the first sentence and move the hint to a second line: error: Nonexistent flag: --description. Run the command with --help to see its flags. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🔒 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 |
Brings in #295, which removed the environment description from env:create, env:update and env:get. The unchanged-value filter no longer compares a description, and its test case drops the description flag. Refreshes the talisman checksum of environment.update.test.ts and the generated README. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Brings in CL-8827 (#295). README.md merged cleanly. - .talismanrc: refreshed the checksums of README.md (merged file) and of the files CL-8827 changed whose v2-dev checksums were stale: environment.update.test.ts, env/get.test.ts, env/update.test.ts, env/update.ts, core/failure.test.ts, environment.inputs.ts, environment.presenter(.test).ts, environment.update.prompt(.test).ts, environment.update.ts and environments/types.ts. Every finding is a false positive on "password", "key", "secret" or "pass" in flag names, field names, prompts and test titles; no credential values. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Jira: CL-8827
What
The Launch UI never shows or edits an environment's description, and the CLI's handling of it was broken.
env:update --description ""was treated as no flag: on its own it exited 2 with "none was supplied", and combined with other flags it was silently dropped. The interactive Description prompt couldn't clear a value either. Rather than fix a field only the CLI exposes, this PR removes it to match the UI.launch:env:createandlaunch:env:updateno longer accept--description. Passing it now fails with oclif's unknown-flag error (exit 2), and nodescriptionis sent to the API.launch:env:updateno longer lists--descriptionin "Pass at least one of …", and its interactive "Select the fields to update" checklist no longer offers Description.launch:env:getno longer prints a DESCRIPTION row.ENVIRONMENT_DESCRIPTION_MAX_LENGTHanddescriptionare removed from the environment types.The README entries for
env:createandenv:updateno longer list the flag. They're edited by hand rather than regenerated withoclif readme, to avoid unrelated churn.Every V2 command: clearer parse errors. oclif adds a second line,
See more help with --help, to every parse error. The error now ends with a full stop, and that line is replaced by a full sentence on its own line:Not changed: project description (
launch:projects:create/launch:projects:update --description) is a separate field and still works.Tests
env:create,env:updateandenv:getcommand tests, plus the updater, creator, prompt and presenter tests, are updated for the removed flag, request field, checklist entry and table row.env:getprints no DESCRIPTION row and that the FileUpload checklist now offers 9 fields.src/core/failure.test.tsfeeds a real oclifNonexistent flagparse error toreportFailureand checks the two-line wording and exit code 2.npm test: 3,866 tests in 196 suites pass after merging the latestv2-dev.npm run lintis clean.#claude_code#
🤖 Generated with Claude Code