@ycadence/cli 0.2.0 → 0.2.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/bin.js +9 -3
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2144,7 +2144,7 @@ var configPathHandler = async (context) => {
|
|
|
2144
2144
|
};
|
|
2145
2145
|
|
|
2146
2146
|
// src/version.ts
|
|
2147
|
-
var CLI_VERSION = "0.2.
|
|
2147
|
+
var CLI_VERSION = "0.2.1";
|
|
2148
2148
|
|
|
2149
2149
|
// src/handlers/doctor.ts
|
|
2150
2150
|
function legacyNote(name, env) {
|
|
@@ -3591,8 +3591,12 @@ ${text}`);
|
|
|
3591
3591
|
globals = options;
|
|
3592
3592
|
const secrets = context.secrets ?? (directory === undefined ? lazySecretStore(async () => detectSecretStore({ directory: undefined, env: { YCADENCE_CREDENTIAL_STORE: "file" } })) : lazySecretStore(() => detectSecretStore({ directory, env: context.env })));
|
|
3593
3593
|
const notice = (message) => {
|
|
3594
|
-
if (
|
|
3594
|
+
if (options.quiet)
|
|
3595
|
+
return;
|
|
3596
|
+
if (context.notice === undefined)
|
|
3595
3597
|
stderr.push(message);
|
|
3598
|
+
else
|
|
3599
|
+
context.notice(message);
|
|
3596
3600
|
};
|
|
3597
3601
|
const debug = (message) => {
|
|
3598
3602
|
if (options.verbose)
|
|
@@ -3767,7 +3771,9 @@ var result = await run(process.argv.slice(2), {
|
|
|
3767
3771
|
readStdin,
|
|
3768
3772
|
isTTY: process.stdin.isTTY === true && process.stderr.isTTY === true,
|
|
3769
3773
|
confirm,
|
|
3770
|
-
openUrl
|
|
3774
|
+
openUrl,
|
|
3775
|
+
notice: (message) => process.stderr.write(`${message}
|
|
3776
|
+
`)
|
|
3771
3777
|
});
|
|
3772
3778
|
if (result.stdout !== "")
|
|
3773
3779
|
process.stdout.write(`${result.stdout}
|