MCPcopy
hub / github.com/webpack/webpack / getDescription

Function getDescription

lib/cli.js:134–142  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

132 * @returns {string | undefined} description
133 */
134 const getDescription = (path) => {
135 for (const { schema } of path) {
136 if (schema.cli) {
137 if (schema.cli.helper) continue;
138 if (schema.cli.description) return schema.cli.description;
139 }
140 if (schema.description) return schema.description;
141 }
142 };
143
144 /**
145 * Gets negated description.

Callers 2

addResetFlagFunction · 0.85
addFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected