Skip to content

Commit c0c07ef

Browse files
os-litantclaude
andauthored
fix(cli): drop the deleted apps/cloud path from the publish help example (#15390)
`os package publish --help` printed its local-dev example as: $ OS_CLOUD_URL=http://localhost:4000 os package publish # local dev (apps/cloud) `apps/cloud` was deleted from this repository -- the reference cloud host now lives in `objectstack-ai/cloud` -- so the parenthetical told a user to run something against a directory absent from the tree they cloned. Unlike the source comments swept alongside it, this string is user-facing output: `static override examples` is printed verbatim by oclif under EXAMPLES. The parenthetical is dropped rather than re-pointed at the other repo. The example teaches that `OS_CLOUD_URL` overrides the control-plane URL, which the `--server` flag documents a few lines above in the same output; which directory happens to serve `localhost:4000` was never part of that, and a `--help` reader is not looking for a file in a monorepo. Two things on the tree already spell it that way: `content/docs/deployment/cli.mdx` publishes this same example with no directory, and the sibling `os plugin publish` gives the identical env-override example with no trailing comment at all. No behaviour moves: no flag, argument, default or exit code changes. Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5f7fa1d commit c0c07ef

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"@objectstack/cli": patch
3+
---
4+
5+
`os package publish --help` no longer points its local-dev example at a directory this repo does not have.
6+
7+
The last line of the command's `EXAMPLES` block read:
8+
9+
```
10+
$ OS_CLOUD_URL=http://localhost:4000 os package publish # local dev (apps/cloud)
11+
```
12+
13+
`apps/cloud` was deleted from this repository — the reference cloud host now lives in `objectstack-ai/cloud` — so the parenthetical sent a reader to a path that is not in the tree they cloned. This is help text, not a source comment: it is printed verbatim to anyone who runs the command.
14+
15+
The parenthetical is dropped rather than re-pointed at the other repo. The example is about `OS_CLOUD_URL` overriding the control-plane URL, which the `--server` flag already documents in the same output; which directory happens to serve `localhost:4000` was never part of what the example teaches, and a `--help` reader is not looking for a file in a monorepo. `# local dev` alone carries it, and it now matches how the CLI reference docs have long published the same example.
16+
17+
No behaviour changes: `examples` is a static help string, and no flag, argument, default or exit code moves.

packages/cli/src/commands/package/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default class PackagePublish extends Command {
165165
'$ os package publish --manifest-id com.acme.crm --version 1.2.0',
166166
'$ os package publish --env env_abc123 --install',
167167
'$ os package publish dist/objectstack.json --visibility org --note "first cut"',
168-
'$ OS_CLOUD_URL=http://localhost:4000 os package publish # local dev (apps/cloud)',
168+
'$ OS_CLOUD_URL=http://localhost:4000 os package publish # local dev',
169169
];
170170

171171
static override args = {

0 commit comments

Comments
 (0)