cc-wrapper 0.1.0 → 0.2.0
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.
- package/dist/cli.js +14 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -287,9 +287,20 @@ async function claudeCommand(extraArgs, options) {
|
|
|
287
287
|
}
|
|
288
288
|
const args = buildClaudeArgs(profile.args, extraArgs, !!options.dd);
|
|
289
289
|
const env = { ...process.env, ...profile.env };
|
|
290
|
-
const spinner = ora(
|
|
291
|
-
console.log(chalk6.dim("env: " + JSON.stringify(maskEnv(profile.env))));
|
|
290
|
+
const spinner = ora("Launching claude...").start();
|
|
292
291
|
spinner.stop();
|
|
292
|
+
console.log(chalk6.bold.cyan("cc-wrapper") + chalk6.dim(" \u203A ") + chalk6.bold(`profile: ${profileName}`));
|
|
293
|
+
const masked = maskEnv(profile.env);
|
|
294
|
+
const envEntries = Object.entries(masked);
|
|
295
|
+
if (envEntries.length > 0) {
|
|
296
|
+
const keyWidth = Math.max(...envEntries.map(([k]) => k.length));
|
|
297
|
+
for (const [k, v] of envEntries) {
|
|
298
|
+
console.log(
|
|
299
|
+
chalk6.dim(" " + k.padEnd(keyWidth, " ") + " ") + chalk6.yellow(v)
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
console.log();
|
|
293
304
|
const code = await spawnClaude(args, env);
|
|
294
305
|
process.exit(code);
|
|
295
306
|
}
|
|
@@ -325,5 +336,5 @@ cli.command("claude [...args]", "Run claude with the default profile").option("-
|
|
|
325
336
|
return claudeCommand(args, options);
|
|
326
337
|
});
|
|
327
338
|
cli.help();
|
|
328
|
-
cli.version("0.
|
|
339
|
+
cli.version("0.2.0");
|
|
329
340
|
cli.parse();
|