Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/help-externalize-internalize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bradygaster/squad-cli": patch
---

Add `externalize` and `internalize` to the top-level `squad --help` command list so they are discoverable (#1050).
2 changes: 2 additions & 0 deletions packages/squad-cli/src/cli-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ async function main(): Promise<void> {
console.log(` Aliases: workstreams, streams (deprecated)`);
console.log(` ${BOLD}link${RESET} Link project to a remote team root`);
console.log(` Usage: link <team-repo-path>`);
console.log(` ${BOLD}externalize${RESET} Move local squad state to an external team root`);
console.log(` ${BOLD}internalize${RESET} Pull an external team root back into the project`);
Comment thread
primetimetank21 marked this conversation as resolved.
Comment thread
primetimetank21 marked this conversation as resolved.
console.log(` ${BOLD}build${RESET} Compile squad.config.ts into .squad/ markdown`);
console.log(` Flags: --check (validate only), --dry-run (preview)`);
console.log(` --watch (rebuild on change)`);
Expand Down
2 changes: 1 addition & 1 deletion test/human-journeys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ describe('Cross-journey: CLI --help is the safety net', () => {
await harness.close();

// A confused human types --help. Do they see EVERY command?
const expectedCommands = ['init', 'status', 'doctor', 'help', 'upgrade', 'export', 'import'];
const expectedCommands = ['init', 'status', 'doctor', 'help', 'upgrade', 'export', 'import', 'externalize', 'internalize'];
for (const cmd of expectedCommands) {
expect(output.toLowerCase()).toContain(cmd);
}
Expand Down
Loading