@inquirer/i18n 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -5
- package/dist/create.d.ts +0 -32
- package/dist/create.js +0 -123
- package/dist/index.d.ts +0 -30
- package/dist/index.js +0 -78
- package/dist/locales/en.d.ts +0 -1
- package/dist/locales/en.js +0 -1
- package/dist/locales/es.d.ts +0 -209
- package/dist/locales/es.js +0 -32
- package/dist/locales/fr.d.ts +0 -209
- package/dist/locales/fr.js +0 -32
- package/dist/locales/pt.d.ts +0 -209
- package/dist/locales/pt.js +0 -32
- package/dist/locales/zh.d.ts +0 -209
- package/dist/locales/zh.js +0 -32
- package/dist/types.d.ts +0 -71
- package/dist/types.js +0 -1
package/dist/locales/fr.d.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export declare const confirm: (this: void, config: {
|
|
2
|
-
message: string;
|
|
3
|
-
default?: boolean;
|
|
4
|
-
transformer?: (value: boolean) => string;
|
|
5
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
7
|
-
message: string;
|
|
8
|
-
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
9
|
-
value: Value;
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
short?: string;
|
|
13
|
-
disabled?: boolean | string;
|
|
14
|
-
type?: never;
|
|
15
|
-
})[];
|
|
16
|
-
pageSize?: number | undefined;
|
|
17
|
-
loop?: boolean | undefined;
|
|
18
|
-
default?: NoInfer<Value> | undefined;
|
|
19
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
20
|
-
icon: {
|
|
21
|
-
cursor: string;
|
|
22
|
-
};
|
|
23
|
-
style: {
|
|
24
|
-
disabled: (text: string) => string;
|
|
25
|
-
description: (text: string) => string;
|
|
26
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
27
|
-
};
|
|
28
|
-
i18n: {
|
|
29
|
-
disabledError: string;
|
|
30
|
-
};
|
|
31
|
-
indexMode: "hidden" | "number";
|
|
32
|
-
keybindings: ReadonlyArray<import("@inquirer/core").Keybinding>;
|
|
33
|
-
}>> | undefined;
|
|
34
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, checkbox: <Value>(this: void, config: {
|
|
35
|
-
message: string;
|
|
36
|
-
prefix?: string | undefined;
|
|
37
|
-
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
|
|
39
|
-
value: Value;
|
|
40
|
-
name?: string;
|
|
41
|
-
checkedName?: string;
|
|
42
|
-
description?: string;
|
|
43
|
-
short?: string;
|
|
44
|
-
disabled?: boolean | string;
|
|
45
|
-
checked?: boolean;
|
|
46
|
-
type?: never;
|
|
47
|
-
})[];
|
|
48
|
-
loop?: boolean | undefined;
|
|
49
|
-
required?: boolean | undefined;
|
|
50
|
-
validate?: ((choices: readonly {
|
|
51
|
-
value: Value;
|
|
52
|
-
name: string;
|
|
53
|
-
checkedName: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
short: string;
|
|
56
|
-
disabled: boolean | string;
|
|
57
|
-
checked: boolean;
|
|
58
|
-
}[]) => boolean | string | Promise<string | boolean>) | undefined;
|
|
59
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
60
|
-
icon: {
|
|
61
|
-
checked: string;
|
|
62
|
-
unchecked: string;
|
|
63
|
-
cursor: string;
|
|
64
|
-
disabledChecked: string;
|
|
65
|
-
disabledUnchecked: string;
|
|
66
|
-
};
|
|
67
|
-
style: {
|
|
68
|
-
disabled: (text: string) => string;
|
|
69
|
-
renderSelectedChoices: <T>(selectedChoices: ReadonlyArray<{
|
|
70
|
-
value: T;
|
|
71
|
-
name: string;
|
|
72
|
-
checkedName: string;
|
|
73
|
-
description?: string;
|
|
74
|
-
short: string;
|
|
75
|
-
disabled: boolean | string;
|
|
76
|
-
checked: boolean;
|
|
77
|
-
}>, allChoices: ReadonlyArray<{
|
|
78
|
-
value: T;
|
|
79
|
-
name: string;
|
|
80
|
-
checkedName: string;
|
|
81
|
-
description?: string;
|
|
82
|
-
short: string;
|
|
83
|
-
disabled: boolean | string;
|
|
84
|
-
checked: boolean;
|
|
85
|
-
} | import("@inquirer/prompts").Separator>) => string;
|
|
86
|
-
description: (text: string) => string;
|
|
87
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
88
|
-
};
|
|
89
|
-
i18n: {
|
|
90
|
-
disabledError: string;
|
|
91
|
-
};
|
|
92
|
-
keybindings: ReadonlyArray<import("@inquirer/core").Keybinding>;
|
|
93
|
-
}>> | undefined;
|
|
94
|
-
shortcuts?: {
|
|
95
|
-
all?: string | null;
|
|
96
|
-
invert?: string | null;
|
|
97
|
-
} | undefined;
|
|
98
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value[]>, search: <Value>(this: void, config: {
|
|
99
|
-
message: string;
|
|
100
|
-
source: (term: string | undefined, opt: {
|
|
101
|
-
signal: AbortSignal;
|
|
102
|
-
}) => readonly (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
|
|
103
|
-
value: Value;
|
|
104
|
-
name?: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
short?: string;
|
|
107
|
-
disabled?: boolean | string;
|
|
108
|
-
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
110
|
-
value: Value;
|
|
111
|
-
name?: string;
|
|
112
|
-
description?: string;
|
|
113
|
-
short?: string;
|
|
114
|
-
disabled?: boolean | string;
|
|
115
|
-
type?: never;
|
|
116
|
-
})[]>;
|
|
117
|
-
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
118
|
-
pageSize?: number | undefined;
|
|
119
|
-
default?: NoInfer<Value> | undefined;
|
|
120
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
121
|
-
icon: {
|
|
122
|
-
cursor: string;
|
|
123
|
-
};
|
|
124
|
-
style: {
|
|
125
|
-
disabled: (text: string) => string;
|
|
126
|
-
searchTerm: (text: string) => string;
|
|
127
|
-
description: (text: string) => string;
|
|
128
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
129
|
-
};
|
|
130
|
-
}>> | undefined;
|
|
131
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
|
-
message: string;
|
|
133
|
-
choices: readonly {
|
|
134
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
135
|
-
name: string;
|
|
136
|
-
}[] | readonly (import("@inquirer/prompts").Separator | ({
|
|
137
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
138
|
-
value: Value;
|
|
139
|
-
} | {
|
|
140
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
141
|
-
name: string;
|
|
142
|
-
value: Value;
|
|
143
|
-
}))[];
|
|
144
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
145
|
-
expanded?: boolean | undefined;
|
|
146
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
147
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
148
|
-
message: string;
|
|
149
|
-
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
150
|
-
value: Value;
|
|
151
|
-
name?: string;
|
|
152
|
-
short?: string;
|
|
153
|
-
key?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
})[];
|
|
156
|
-
loop?: boolean | undefined;
|
|
157
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
158
|
-
style: {
|
|
159
|
-
description: (text: string) => string;
|
|
160
|
-
};
|
|
161
|
-
}>> | undefined;
|
|
162
|
-
default?: NoInfer<Value> | undefined;
|
|
163
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
164
|
-
message: string;
|
|
165
|
-
default?: string;
|
|
166
|
-
postfix?: string;
|
|
167
|
-
waitForUserInput?: boolean;
|
|
168
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").IFileOptions;
|
|
170
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
|
-
validationFailureMode: "keep" | "clear";
|
|
172
|
-
style: {
|
|
173
|
-
waitingMessage: (enterKey: string) => string;
|
|
174
|
-
};
|
|
175
|
-
}>>;
|
|
176
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, input: (this: void, config: {
|
|
177
|
-
message: string;
|
|
178
|
-
default?: string;
|
|
179
|
-
prefill?: "tab" | "editable";
|
|
180
|
-
required?: boolean;
|
|
181
|
-
transformer?: (value: string, { isFinal }: {
|
|
182
|
-
isFinal: boolean;
|
|
183
|
-
}) => string;
|
|
184
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
185
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
186
|
-
validationFailureMode: "keep" | "clear";
|
|
187
|
-
}>>;
|
|
188
|
-
pattern?: RegExp;
|
|
189
|
-
patternError?: string;
|
|
190
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
|
-
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
-
min?: number | undefined;
|
|
194
|
-
max?: number | undefined;
|
|
195
|
-
step?: number | "any" | undefined;
|
|
196
|
-
required?: Required | undefined;
|
|
197
|
-
validate?: ((value: Required extends true ? number : number | undefined) => boolean | string | Promise<string | boolean>) | undefined;
|
|
198
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
199
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Required extends true ? number : number | undefined>, password: (this: void, config: {
|
|
200
|
-
message: string;
|
|
201
|
-
mask?: boolean | string;
|
|
202
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
203
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
204
|
-
style: {
|
|
205
|
-
maskedText: string;
|
|
206
|
-
};
|
|
207
|
-
}>>;
|
|
208
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>;
|
|
209
|
-
export { Separator } from '@inquirer/prompts';
|
package/dist/locales/fr.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createLocalizedPrompts } from "../create.js";
|
|
2
|
-
const frLocale = {
|
|
3
|
-
confirm: {
|
|
4
|
-
yesLabel: 'Oui',
|
|
5
|
-
noLabel: 'Non',
|
|
6
|
-
hintYes: 'O/n',
|
|
7
|
-
hintNo: 'o/N',
|
|
8
|
-
},
|
|
9
|
-
select: {
|
|
10
|
-
helpNavigate: 'naviguer',
|
|
11
|
-
helpSelect: 'sélectionner',
|
|
12
|
-
},
|
|
13
|
-
checkbox: {
|
|
14
|
-
helpNavigate: 'naviguer',
|
|
15
|
-
helpSelect: 'sélectionner',
|
|
16
|
-
helpSubmit: 'soumettre',
|
|
17
|
-
helpAll: 'tout',
|
|
18
|
-
helpInvert: 'inverser',
|
|
19
|
-
},
|
|
20
|
-
search: {
|
|
21
|
-
helpNavigate: 'naviguer',
|
|
22
|
-
helpSelect: 'sélectionner',
|
|
23
|
-
},
|
|
24
|
-
editor: {
|
|
25
|
-
waitingMessage: (enterKey) => `Appuyez sur ${enterKey} pour lancer votre éditeur préféré.`,
|
|
26
|
-
},
|
|
27
|
-
password: {
|
|
28
|
-
maskedText: '[saisie masquée]',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
export const { confirm, select, checkbox, search, expand, rawlist, editor, input, number, password, } = createLocalizedPrompts(frLocale);
|
|
32
|
-
export { Separator } from '@inquirer/prompts';
|
package/dist/locales/pt.d.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export declare const confirm: (this: void, config: {
|
|
2
|
-
message: string;
|
|
3
|
-
default?: boolean;
|
|
4
|
-
transformer?: (value: boolean) => string;
|
|
5
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
7
|
-
message: string;
|
|
8
|
-
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
9
|
-
value: Value;
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
short?: string;
|
|
13
|
-
disabled?: boolean | string;
|
|
14
|
-
type?: never;
|
|
15
|
-
})[];
|
|
16
|
-
pageSize?: number | undefined;
|
|
17
|
-
loop?: boolean | undefined;
|
|
18
|
-
default?: NoInfer<Value> | undefined;
|
|
19
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
20
|
-
icon: {
|
|
21
|
-
cursor: string;
|
|
22
|
-
};
|
|
23
|
-
style: {
|
|
24
|
-
disabled: (text: string) => string;
|
|
25
|
-
description: (text: string) => string;
|
|
26
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
27
|
-
};
|
|
28
|
-
i18n: {
|
|
29
|
-
disabledError: string;
|
|
30
|
-
};
|
|
31
|
-
indexMode: "hidden" | "number";
|
|
32
|
-
keybindings: ReadonlyArray<import("@inquirer/core").Keybinding>;
|
|
33
|
-
}>> | undefined;
|
|
34
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, checkbox: <Value>(this: void, config: {
|
|
35
|
-
message: string;
|
|
36
|
-
prefix?: string | undefined;
|
|
37
|
-
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
|
|
39
|
-
value: Value;
|
|
40
|
-
name?: string;
|
|
41
|
-
checkedName?: string;
|
|
42
|
-
description?: string;
|
|
43
|
-
short?: string;
|
|
44
|
-
disabled?: boolean | string;
|
|
45
|
-
checked?: boolean;
|
|
46
|
-
type?: never;
|
|
47
|
-
})[];
|
|
48
|
-
loop?: boolean | undefined;
|
|
49
|
-
required?: boolean | undefined;
|
|
50
|
-
validate?: ((choices: readonly {
|
|
51
|
-
value: Value;
|
|
52
|
-
name: string;
|
|
53
|
-
checkedName: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
short: string;
|
|
56
|
-
disabled: boolean | string;
|
|
57
|
-
checked: boolean;
|
|
58
|
-
}[]) => boolean | string | Promise<string | boolean>) | undefined;
|
|
59
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
60
|
-
icon: {
|
|
61
|
-
checked: string;
|
|
62
|
-
unchecked: string;
|
|
63
|
-
cursor: string;
|
|
64
|
-
disabledChecked: string;
|
|
65
|
-
disabledUnchecked: string;
|
|
66
|
-
};
|
|
67
|
-
style: {
|
|
68
|
-
disabled: (text: string) => string;
|
|
69
|
-
renderSelectedChoices: <T>(selectedChoices: ReadonlyArray<{
|
|
70
|
-
value: T;
|
|
71
|
-
name: string;
|
|
72
|
-
checkedName: string;
|
|
73
|
-
description?: string;
|
|
74
|
-
short: string;
|
|
75
|
-
disabled: boolean | string;
|
|
76
|
-
checked: boolean;
|
|
77
|
-
}>, allChoices: ReadonlyArray<{
|
|
78
|
-
value: T;
|
|
79
|
-
name: string;
|
|
80
|
-
checkedName: string;
|
|
81
|
-
description?: string;
|
|
82
|
-
short: string;
|
|
83
|
-
disabled: boolean | string;
|
|
84
|
-
checked: boolean;
|
|
85
|
-
} | import("@inquirer/prompts").Separator>) => string;
|
|
86
|
-
description: (text: string) => string;
|
|
87
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
88
|
-
};
|
|
89
|
-
i18n: {
|
|
90
|
-
disabledError: string;
|
|
91
|
-
};
|
|
92
|
-
keybindings: ReadonlyArray<import("@inquirer/core").Keybinding>;
|
|
93
|
-
}>> | undefined;
|
|
94
|
-
shortcuts?: {
|
|
95
|
-
all?: string | null;
|
|
96
|
-
invert?: string | null;
|
|
97
|
-
} | undefined;
|
|
98
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value[]>, search: <Value>(this: void, config: {
|
|
99
|
-
message: string;
|
|
100
|
-
source: (term: string | undefined, opt: {
|
|
101
|
-
signal: AbortSignal;
|
|
102
|
-
}) => readonly (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
|
|
103
|
-
value: Value;
|
|
104
|
-
name?: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
short?: string;
|
|
107
|
-
disabled?: boolean | string;
|
|
108
|
-
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
110
|
-
value: Value;
|
|
111
|
-
name?: string;
|
|
112
|
-
description?: string;
|
|
113
|
-
short?: string;
|
|
114
|
-
disabled?: boolean | string;
|
|
115
|
-
type?: never;
|
|
116
|
-
})[]>;
|
|
117
|
-
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
118
|
-
pageSize?: number | undefined;
|
|
119
|
-
default?: NoInfer<Value> | undefined;
|
|
120
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
121
|
-
icon: {
|
|
122
|
-
cursor: string;
|
|
123
|
-
};
|
|
124
|
-
style: {
|
|
125
|
-
disabled: (text: string) => string;
|
|
126
|
-
searchTerm: (text: string) => string;
|
|
127
|
-
description: (text: string) => string;
|
|
128
|
-
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
|
129
|
-
};
|
|
130
|
-
}>> | undefined;
|
|
131
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
|
-
message: string;
|
|
133
|
-
choices: readonly {
|
|
134
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
135
|
-
name: string;
|
|
136
|
-
}[] | readonly (import("@inquirer/prompts").Separator | ({
|
|
137
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
138
|
-
value: Value;
|
|
139
|
-
} | {
|
|
140
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
141
|
-
name: string;
|
|
142
|
-
value: Value;
|
|
143
|
-
}))[];
|
|
144
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
145
|
-
expanded?: boolean | undefined;
|
|
146
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
147
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
148
|
-
message: string;
|
|
149
|
-
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
150
|
-
value: Value;
|
|
151
|
-
name?: string;
|
|
152
|
-
short?: string;
|
|
153
|
-
key?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
})[];
|
|
156
|
-
loop?: boolean | undefined;
|
|
157
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
158
|
-
style: {
|
|
159
|
-
description: (text: string) => string;
|
|
160
|
-
};
|
|
161
|
-
}>> | undefined;
|
|
162
|
-
default?: NoInfer<Value> | undefined;
|
|
163
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
164
|
-
message: string;
|
|
165
|
-
default?: string;
|
|
166
|
-
postfix?: string;
|
|
167
|
-
waitForUserInput?: boolean;
|
|
168
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").IFileOptions;
|
|
170
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
|
-
validationFailureMode: "keep" | "clear";
|
|
172
|
-
style: {
|
|
173
|
-
waitingMessage: (enterKey: string) => string;
|
|
174
|
-
};
|
|
175
|
-
}>>;
|
|
176
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, input: (this: void, config: {
|
|
177
|
-
message: string;
|
|
178
|
-
default?: string;
|
|
179
|
-
prefill?: "tab" | "editable";
|
|
180
|
-
required?: boolean;
|
|
181
|
-
transformer?: (value: string, { isFinal }: {
|
|
182
|
-
isFinal: boolean;
|
|
183
|
-
}) => string;
|
|
184
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
185
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
186
|
-
validationFailureMode: "keep" | "clear";
|
|
187
|
-
}>>;
|
|
188
|
-
pattern?: RegExp;
|
|
189
|
-
patternError?: string;
|
|
190
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
|
-
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
-
min?: number | undefined;
|
|
194
|
-
max?: number | undefined;
|
|
195
|
-
step?: number | "any" | undefined;
|
|
196
|
-
required?: Required | undefined;
|
|
197
|
-
validate?: ((value: Required extends true ? number : number | undefined) => boolean | string | Promise<string | boolean>) | undefined;
|
|
198
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
199
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<Required extends true ? number : number | undefined>, password: (this: void, config: {
|
|
200
|
-
message: string;
|
|
201
|
-
mask?: boolean | string;
|
|
202
|
-
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
203
|
-
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
204
|
-
style: {
|
|
205
|
-
maskedText: string;
|
|
206
|
-
};
|
|
207
|
-
}>>;
|
|
208
|
-
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>;
|
|
209
|
-
export { Separator } from '@inquirer/prompts';
|
package/dist/locales/pt.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createLocalizedPrompts } from "../create.js";
|
|
2
|
-
const ptLocale = {
|
|
3
|
-
confirm: {
|
|
4
|
-
yesLabel: 'Sim',
|
|
5
|
-
noLabel: 'Não',
|
|
6
|
-
hintYes: 'S/n',
|
|
7
|
-
hintNo: 's/N',
|
|
8
|
-
},
|
|
9
|
-
select: {
|
|
10
|
-
helpNavigate: 'navegar',
|
|
11
|
-
helpSelect: 'selecionar',
|
|
12
|
-
},
|
|
13
|
-
checkbox: {
|
|
14
|
-
helpNavigate: 'navegar',
|
|
15
|
-
helpSelect: 'selecionar',
|
|
16
|
-
helpSubmit: 'enviar',
|
|
17
|
-
helpAll: 'todos',
|
|
18
|
-
helpInvert: 'inverter',
|
|
19
|
-
},
|
|
20
|
-
search: {
|
|
21
|
-
helpNavigate: 'navegar',
|
|
22
|
-
helpSelect: 'selecionar',
|
|
23
|
-
},
|
|
24
|
-
editor: {
|
|
25
|
-
waitingMessage: (enterKey) => `Pressione ${enterKey} para abrir seu editor preferido.`,
|
|
26
|
-
},
|
|
27
|
-
password: {
|
|
28
|
-
maskedText: '[entrada mascarada]',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
export const { confirm, select, checkbox, search, expand, rawlist, editor, input, number, password, } = createLocalizedPrompts(ptLocale);
|
|
32
|
-
export { Separator } from '@inquirer/prompts';
|