This repository was archived by the owner on Aug 22, 2023. It is now read-only.
File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/oclif/command/issues" ,
7
7
"dependencies" : {
8
8
"@oclif/config" : " ^1.15.1" ,
9
- "@oclif/errors" : " ^1.2.2 " ,
9
+ "@oclif/errors" : " ^1.3.3 " ,
10
10
"@oclif/parser" : " ^3.8.3" ,
11
11
"@oclif/plugin-help" : " ^3" ,
12
12
"debug" : " ^4.1.1" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import {format, inspect} from 'util'
8
8
import * as flags from './flags'
9
9
import { sortBy , uniqBy } from './util'
10
10
import { getHelpClass } from '@oclif/plugin-help'
11
+ import { PrettyPrintableError } from '@oclif/errors'
11
12
12
13
/**
13
14
* swallows stdout epipe errors
@@ -122,11 +123,11 @@ export default abstract class Command {
122
123
Errors . warn ( input )
123
124
}
124
125
125
- error ( input : string | Error , options : { code ?: string ; exit : false } ) : void
126
+ error ( input : string | Error , options : { code ?: string ; exit : false } & PrettyPrintableError ) : void
126
127
127
- error ( input : string | Error , options ?: { code ?: string ; exit ?: number } ) : never
128
+ error ( input : string | Error , options ?: { code ?: string ; exit ?: number } & PrettyPrintableError ) : never
128
129
129
- error ( input : string | Error , options : { code ?: string ; exit ?: number | false } = { } ) {
130
+ error ( input : string | Error , options : { code ?: string ; exit ?: number | false } & PrettyPrintableError = { } ) {
130
131
return Errors . error ( input , options as any )
131
132
}
132
133
Original file line number Diff line number Diff line change 73
73
strip-ansi "^6.0.0"
74
74
wrap-ansi "^7.0.0"
75
75
76
+ " @oclif/errors@^1.3.3 " :
77
+ version "1.3.3"
78
+ resolved "https://registry.yarnpkg.com/@oclif/errors/-/errors-1.3.3.tgz#fb597dfbc58c6b8609dc0b2fdf91a2d487818a82"
79
+ integrity sha512-EJR6AIOEkt/NnARNIVAskPDVtdhtO5TTNXmhDrGqMoWVsr0R6DkkLrMyq95BmHvlVWM1nduoq4fQPuCyuF2jaA==
80
+ dependencies :
81
+ clean-stack "^3.0.0"
82
+ fs-extra "^9.0.1"
83
+ indent-string "^4.0.0"
84
+ strip-ansi "^6.0.0"
85
+ wrap-ansi "^7.0.0"
86
+
76
87
" @oclif/linewrap@^1.0.0 " :
77
88
version "1.0.0"
78
89
resolved "https://registry.yarnpkg.com/@oclif/linewrap/-/linewrap-1.0.0.tgz#aedcb64b479d4db7be24196384897b5000901d91"
You can’t perform that action at this time.
0 commit comments