@ghl-ai/aw 0.1.7 → 0.1.8
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/commands/pull.mjs +15 -0
- package/package.json +1 -1
package/commands/pull.mjs
CHANGED
|
@@ -25,8 +25,23 @@ export function pullCommand(args) {
|
|
|
25
25
|
const workspaceDir = args._workspaceDir || (existsSync(join(localDir, '.sync-config.json')) ? localDir : GLOBAL_AW_DIR);
|
|
26
26
|
const dryRun = args['--dry-run'] === true;
|
|
27
27
|
const verbose = args['-v'] === true || args['--verbose'] === true;
|
|
28
|
+
const silent = args['--silent'] === true || args._silent === true;
|
|
28
29
|
const renameNamespace = args._renameNamespace || null;
|
|
29
30
|
|
|
31
|
+
// Silent mode: suppress all output and exit cleanly on errors
|
|
32
|
+
if (silent) {
|
|
33
|
+
const origCancel = fmt.cancel;
|
|
34
|
+
fmt.cancel = () => { process.exit(0); };
|
|
35
|
+
fmt.logInfo = () => {};
|
|
36
|
+
fmt.logSuccess = () => {};
|
|
37
|
+
fmt.logStep = () => {};
|
|
38
|
+
fmt.logWarn = () => {};
|
|
39
|
+
fmt.logMessage = () => {};
|
|
40
|
+
fmt.note = () => {};
|
|
41
|
+
fmt.outro = () => {};
|
|
42
|
+
fmt.spinner = () => ({ start: () => {}, stop: () => {} });
|
|
43
|
+
}
|
|
44
|
+
|
|
30
45
|
// No args = re-pull everything in sync config
|
|
31
46
|
if (!input) {
|
|
32
47
|
const cfg = config.load(workspaceDir);
|