azdo-cli 0.22.0-develop.769 → 0.22.0-feature-046-config-help.765
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.js +7 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2794,16 +2794,14 @@ function renderSettingsHelp(settings = SETTINGS) {
|
|
|
2794
2794
|
for (const setting of settings) {
|
|
2795
2795
|
const facts = [
|
|
2796
2796
|
describeSettingValues(setting),
|
|
2797
|
-
`scope: ${setting.scoped ? "global, or per organization with --org <org>" : "global only"}
|
|
2798
|
-
...setting.required ? ["required"] : [],
|
|
2799
|
-
...setting.env ? [`env: ${setting.env} overrides the stored value`] : [],
|
|
2800
|
-
`example: azdo config set ${setting.key} ${setting.example}`
|
|
2797
|
+
`scope: ${setting.scoped ? "global, or per organization with --org <org>" : "global only"}`
|
|
2801
2798
|
];
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
);
|
|
2799
|
+
if (setting.required) facts.push("required");
|
|
2800
|
+
if (setting.env) facts.push(`env: ${setting.env} overrides the stored value`);
|
|
2801
|
+
lines.push(` ${setting.key.padEnd(keyWidth)}${setting.description}`);
|
|
2802
|
+
for (const fact of facts) lines.push(`${indent}${fact}`);
|
|
2803
|
+
lines.push(`${indent}example: azdo config set ${setting.key} ${setting.example}`);
|
|
2804
|
+
lines.push("");
|
|
2807
2805
|
}
|
|
2808
2806
|
return lines.join("\n").trimEnd();
|
|
2809
2807
|
}
|