contextswitch 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +7 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -151,7 +151,7 @@ program.command("archive <domain>").description("Archive the current session for
151
151
  await archiveCommand(domain);
152
152
  });
153
153
  var domainCmd = program.command("domain").description("Manage domains");
154
- domainCmd.command("add <name>").description('Create a new domain\n\nExamples:\n cs domain add myapi --working-dir ~/projects/api\n cs domain add frontend -w /home/user/app -d "React frontend"').option("-w, --working-dir <path>", "Working directory for this domain (defaults to current directory)").option("-d, --description <text>", "Domain description").option("--extends <parent>", "Inherit from parent domain").action(async (name, options) => {
154
+ domainCmd.command("add <name>").description('Create a new domain\n\nExamples:\n cs domain add myapi --working-dir /path/to/project\n cs domain add frontend -w C:\\Users\\you\\app -d "React frontend"\n\nIf --working-dir is not specified, the current directory is used.').option("-w, --working-dir <path>", "Working directory for this domain (defaults to current directory)").option("-d, --description <text>", "Domain description").option("--extends <parent>", "Inherit from parent domain").action(async (name, options) => {
155
155
  try {
156
156
  if (configManager.domainExists(name)) {
157
157
  console.error(pc.red(`\u274C Domain '${name}' already exists`));
@@ -226,6 +226,9 @@ program.command("doctor").description("Check system configuration and diagnose i
226
226
  console.log(pc.green(`\u2713 Platform: ${paths.platform}`));
227
227
  console.log(pc.cyan("\n\u2728 All checks passed!"));
228
228
  });
229
+ program.action(() => {
230
+ program.outputHelp();
231
+ });
229
232
  program.exitOverride((err) => {
230
233
  if (err.code === "commander.helpDisplayed") {
231
234
  process.exit(0);
@@ -233,6 +236,9 @@ program.exitOverride((err) => {
233
236
  if (err.code === "commander.version") {
234
237
  process.exit(0);
235
238
  }
239
+ if (err.code === "commander.help") {
240
+ process.exit(0);
241
+ }
236
242
  console.error(pc.red(`Error: ${err.message}`));
237
243
  process.exit(1);
238
244
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contextswitch",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Domain-based context management for Claude Code CLI",
5
5
  "main": "dist/cli.js",
6
6
  "type": "module",