MCPcopy Create free account
hub / github.com/Effect-TS/effect / message

Method message

packages/effect/src/unstable/cli/CliError.ts:468–475  ·  view source on GitHub ↗

* Formats the unknown subcommand with parent command context and suggestions. * * @since 4.0.0

()

Source from the content-addressed store, hash-verified

466 * @since 4.0.0
467 */
468 override get message() {
469 const suggestionText = this.suggestions.length > 0
470 ? `\n\n Did you mean this?\n ${this.suggestions.join("\n ")}`
471 : ""
472 return this.parent
473 ? `Unknown subcommand "${this.subcommand}" for "${this.parent.join(" ")}"${suggestionText}`
474 : `Unknown subcommand "${this.subcommand}"${suggestionText}`
475 }
476}
477
478/**

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected