Merge branch 'features/deits' into deits/diagnostics

This commit is contained in:
Christian Capeans 2023-01-17 10:43:12 +01:00
commit c7cde71207

View File

@ -281,6 +281,7 @@ if (process.env.STRAPI_EXPERIMENTAL === 'true') {
`URL of the remote Strapi instance to send data to` `URL of the remote Strapi instance to send data to`
).argParser(parseURL) ).argParser(parseURL)
) )
.addOption(forceOption)
// Validate URLs // Validate URLs
.hook( .hook(
'preAction', 'preAction',
@ -303,6 +304,12 @@ if (process.env.STRAPI_EXPERIMENTAL === 'true') {
() => exitWith(1, 'At least one source (from) or destination (to) option must be provided') () => exitWith(1, 'At least one source (from) or destination (to) option must be provided')
) )
) )
.hook(
'preAction',
confirmMessage(
'The import will delete all data in the remote database. Are you sure you want to proceed?'
)
)
.allowExcessArguments(false) .allowExcessArguments(false)
.action(getLocalScript('transfer/transfer')); .action(getLocalScript('transfer/transfer'));
} }