@daliovic/cc-statusline 1.1.0 → 1.1.1
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/statusline.js +6 -5
- package/package.json +1 -1
package/dist/statusline.js
CHANGED
|
@@ -3,12 +3,11 @@ import { readFileSync, writeFileSync, existsSync } from "node:fs";
|
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { loadConfig } from "./config.js";
|
|
6
|
-
// Handle --config flag
|
|
6
|
+
// Handle --config flag first and exit
|
|
7
7
|
if (process.argv.includes("--config")) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
main().catch(() => process.exit(1));
|
|
8
|
+
const { runWizard } = await import("./wizard.js");
|
|
9
|
+
await runWizard();
|
|
10
|
+
process.exit(0);
|
|
12
11
|
}
|
|
13
12
|
// Load user config
|
|
14
13
|
const userConfig = loadConfig();
|
|
@@ -244,3 +243,5 @@ async function main() {
|
|
|
244
243
|
// Output
|
|
245
244
|
console.log(segments.join(` ${color.dim}\u{2502}${color.reset} `));
|
|
246
245
|
}
|
|
246
|
+
// Run main
|
|
247
|
+
main().catch(() => process.exit(1));
|