@cenk1cenk2/oclif-common 6.2.3 → 6.2.5
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/index.d.ts +3 -3
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -255,12 +255,12 @@ declare class LockerService<LockFile extends LockableData = LockableData> {
|
|
|
255
255
|
constructor(logger: LoggerService, fs: FileSystemService, parser: ParserService, options: LockerServiceOptions);
|
|
256
256
|
hasLock(): boolean;
|
|
257
257
|
hasUnlock(): boolean;
|
|
258
|
-
addLock<T extends LockableData =
|
|
258
|
+
addLock<T extends LockableData = LockFile>(...data: LockData<T>[]): void;
|
|
259
259
|
addUnlock(...data: UnlockData[]): void;
|
|
260
260
|
lockAll(): Promise<void>;
|
|
261
261
|
unlockAll(): Promise<void>;
|
|
262
262
|
all(): Promise<void>;
|
|
263
|
-
lock<T extends LockableData =
|
|
263
|
+
lock<T extends LockableData = LockFile>(...data: LockData<T>[]): Promise<void>;
|
|
264
264
|
unlock(...data: UnlockData[]): Promise<void>;
|
|
265
265
|
read(): Promise<LockFile>;
|
|
266
266
|
tryRead(): Promise<LockFile | undefined>;
|
|
@@ -388,7 +388,7 @@ declare abstract class Command<T extends typeof Command$1 = typeof Command$1, Ct
|
|
|
388
388
|
ctx: C;
|
|
389
389
|
}>;
|
|
390
390
|
/** Catch any error occurred during command. */
|
|
391
|
-
protected catch(e: Error, exit?: number): Promise<
|
|
391
|
+
protected catch(e: Error, exit?: number): Promise<never>;
|
|
392
392
|
abstract run(): Promise<any>;
|
|
393
393
|
}
|
|
394
394
|
|
package/dist/index.js
CHANGED
|
@@ -1421,7 +1421,9 @@ var LogoService = (_a15 = class {
|
|
|
1421
1421
|
if (this.shouldBeSilent()) {
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
|
-
this.
|
|
1424
|
+
const logo = this.cs.oclif.name + " v" + this.cs.oclif.version;
|
|
1425
|
+
this.write(logo);
|
|
1426
|
+
this.write("-".repeat(logo.length));
|
|
1425
1427
|
};
|
|
1426
1428
|
}
|
|
1427
1429
|
}
|
|
@@ -1802,10 +1804,7 @@ var _Command = class _Command extends BaseCommand {
|
|
|
1802
1804
|
this.logger.debug(e.stack, {
|
|
1803
1805
|
context: "crash"
|
|
1804
1806
|
});
|
|
1805
|
-
|
|
1806
|
-
this.exit(exit);
|
|
1807
|
-
}
|
|
1808
|
-
return;
|
|
1807
|
+
this.exit(exit ?? 1);
|
|
1809
1808
|
}
|
|
1810
1809
|
};
|
|
1811
1810
|
__name(_Command, "Command");
|