MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / flagDescription

Method flagDescription

out/cli.cjs:65163–65170  ·  view source on GitHub ↗
({ flag: e3 })

Source from the content-addressed store, hash-verified

65161 const o3 = this.flagParameter("type" in r3 ? r3.type : r3);
65162 o3 && (s2 += `${this.flagOperator(e3)}${o3}`);
65163 }
65164 return s2;
65165 }
65166 flagDefault(e3) {
65167 return JSON.stringify(e3);
65168 }
65169 flagDescription({ flag: e3 }) {
65170 let r3 = "description" in e3 ? e3.description ?? "" : "";
65171 if ("default" in e3) {
65172 let { default: n2 } = e3;
65173 typeof n2 == "function" && (n2 = n2()), n2 && (r3 += ` (default: ${this.flagDefault(n2)})`);

Callers

nothing calls this directly

Calls 2

n2Function · 0.85
flagDefaultMethod · 0.80

Tested by

no test coverage detected