MCPcopy
hub / github.com/ionic-team/capacitor / getFullCommandName

Function getFullCommandName

cli/src/telemetry.ts:179–188  ·  view source on GitHub ↗

* Walk through the command's parent tree and construct a space-separated name. * * Probably overkill because we don't have nested commands, but whatever.

(cmd: Command)

Source from the content-addressed store, hash-verified

177 * Probably overkill because we don't have nested commands, but whatever.
178 */
179function getFullCommandName(cmd: Command): string {
180 const names: string[] = [];
181
182 while (cmd.parent !== null) {
183 names.push(cmd.name());
184 cmd = cmd.parent;
185 }
186
187 return names.reverse().join(' ');
188}

Callers 1

telemetryActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected