()
| 68 | } |
| 69 | |
| 70 | func (e *toolCommandError) Error() string { |
| 71 | if e == nil { |
| 72 | return nilToolErrorString |
| 73 | } |
| 74 | if e.err != nil { |
| 75 | return redactToolDiagnostic(e.err.Error()) |
| 76 | } |
| 77 | apiErr := newToolAPIError(0, "", e.response) |
| 78 | return apiErr.Error() |
| 79 | } |
| 80 | |
| 81 | func newToolListCommand(deps commandDeps) *cobra.Command { |
| 82 | var scope toolScopeFlags |