mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 18:51:22 +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`
|
`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'));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user