mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 04:08:04 +00:00
Merge pull request #14894 from strapi/deits/cli-check-for-strapi
[DEITS] import / export should require being in local Strapi folder
This commit is contained in:
commit
c6535a15dc
@ -303,7 +303,7 @@ program
|
|||||||
.arguments('[filename]')
|
.arguments('[filename]')
|
||||||
.allowExcessArguments(false)
|
.allowExcessArguments(false)
|
||||||
.hook('preAction', promptEncryptionKey)
|
.hook('preAction', promptEncryptionKey)
|
||||||
.action(require('../lib/commands/transfer/export'));
|
.action(getLocalScript('transfer/export'));
|
||||||
|
|
||||||
// `$ strapi import`
|
// `$ strapi import`
|
||||||
program
|
program
|
||||||
@ -329,6 +329,6 @@ program
|
|||||||
)
|
)
|
||||||
.arguments('<filename>')
|
.arguments('<filename>')
|
||||||
.allowExcessArguments(false)
|
.allowExcessArguments(false)
|
||||||
.action(require('../lib/commands/transfer/import'));
|
.action(getLocalScript('transfer/import'));
|
||||||
|
|
||||||
program.parseAsync(process.argv);
|
program.parseAsync(process.argv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user