Skip to content

Commit

Permalink
chore(import-cli): upgrade meow dependency (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Sep 8, 2021
1 parent 8821c60 commit 03781c9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/@sanity/import-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@sanity/client": "2.18.0",
"@sanity/import": "2.18.0",
"meow": "^3.7.0",
"meow": "^9.0.0",
"ora": "^2.1.0",
"pretty-ms": "^7.0.1",
"simple-get": "^4.0.0"
Expand Down
59 changes: 47 additions & 12 deletions packages/@sanity/import-cli/src/sanity-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,53 @@ const cli = meow(
--token = SANITY_IMPORT_TOKEN
`,
{
boolean: [
'replace',
'missing',
'allow-failing-assets',
'allow-assets-in-different-dataset',
'replace-assets',
],
alias: {
p: 'project',
d: 'dataset',
t: 'token',
c: 'asset-concurrency',
flags: {
// Required, but validated below for better error output
project: {
type: 'string',
alias: 'p',
},

dataset: {
type: 'string',
alias: 'd',
},

token: {
type: 'string',
alias: 't',
},

// Optional
replace: {
type: 'boolean',
default: false,
},

missing: {
type: 'boolean',
default: false,
},

allowFailingAssets: {
type: 'boolean',
default: false,
},

allowAssetsInDifferentDataset: {
type: 'boolean',
default: false,
},

replaceAssets: {
type: 'boolean',
default: false,
},

assetConcurrency: {
type: 'number',
alias: 'c',
},
},
}
)
Expand Down

2 comments on commit 03781c9

@vercel
Copy link

@vercel vercel bot commented on 03781c9 Sep 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio.sanity.build
test-studio-git-next.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 03781c9 Sep 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio-git-next.sanity.build
perf-studio.sanity.build

Please sign in to comment.