UNPKG
ecs-pf
Version:
latest (2.2.27)
2.2.27
2.2.26
2.2.25
2.2.24
2.2.23
2.2.22
2.2.21
2.2.20
2.2.19
2.2.18
2.2.17
2.2.16
2.2.15
2.2.14
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.5
2.2.3
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.0
CLI for port-forwarding to RDS via AWS ECS
ecs-pf
/
dist
/
utils
/
interactive.js
13 lines
(12 loc)
•
313 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
inquirer
from
"inquirer"
;
export
async
function
askRetry
(
) {
const
{ shouldRetry } =
await
inquirer.
prompt
([ {
type
:
"confirm"
,
name
:
"shouldRetry"
,
message
:
"Would you like to retry?"
,
default
:
true
, }, ]);
return
shouldRetry; }