mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Merge branch 'features/deits' into deits/diagnostics
This commit is contained in:
commit
c7cde71207
@ -281,6 +281,7 @@ if (process.env.STRAPI_EXPERIMENTAL === 'true') {
|
||||
`URL of the remote Strapi instance to send data to`
|
||||
).argParser(parseURL)
|
||||
)
|
||||
.addOption(forceOption)
|
||||
// Validate URLs
|
||||
.hook(
|
||||
'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')
|
||||
)
|
||||
)
|
||||
.hook(
|
||||
'preAction',
|
||||
confirmMessage(
|
||||
'The import will delete all data in the remote database. Are you sure you want to proceed?'
|
||||
)
|
||||
)
|
||||
.allowExcessArguments(false)
|
||||
.action(getLocalScript('transfer/transfer'));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user