@vocab/cli
Advanced tools
Comparing version 1.1.0 to 1.2.0
# @vocab/cli | ||
## 1.2.0 | ||
### Minor Changes | ||
- [`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382) [#93](https://github.com/seek-oss/vocab/pull/93) Thanks [@askoufis](https://github.com/askoufis)! - Add an optional `delete-unused-keys` flag to the `push` command. If set to `true`, unused keys will be deleted from Phrase after translations are pushed. | ||
**EXAMPLE USAGE**: | ||
```bash | ||
vocab push --delete-unused-keys | ||
``` | ||
### Patch Changes | ||
- Updated dependencies [[`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382), [`159d559`](https://github.com/seek-oss/vocab/commit/159d559c87c66c3e91c707fb45a1f67ebec07b4d)]: | ||
- @vocab/phrase@1.1.0 | ||
## 1.1.0 | ||
@@ -4,0 +21,0 @@ |
@@ -35,3 +35,8 @@ 'use strict'; | ||
builder: () => yargs__default['default'].options({ | ||
branch: branchDefinition | ||
branch: branchDefinition, | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}), | ||
@@ -38,0 +43,0 @@ handler: async options => { |
@@ -35,3 +35,8 @@ 'use strict'; | ||
builder: () => yargs__default['default'].options({ | ||
branch: branchDefinition | ||
branch: branchDefinition, | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}), | ||
@@ -38,0 +43,0 @@ handler: async options => { |
@@ -28,3 +28,8 @@ import { push, pull } from '@vocab/phrase'; | ||
builder: () => yargs.options({ | ||
branch: branchDefinition | ||
branch: branchDefinition, | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}), | ||
@@ -31,0 +36,0 @@ handler: async options => { |
{ | ||
"name": "@vocab/cli", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "dist/vocab-cli.cjs.js", | ||
@@ -14,3 +14,3 @@ "module": "dist/vocab-cli.esm.js", | ||
"@vocab/core": "^1.1.0", | ||
"@vocab/phrase": "^1.0.0", | ||
"@vocab/phrase": "^1.1.0", | ||
"env-ci": "^5.0.2", | ||
@@ -17,0 +17,0 @@ "fast-glob": "^3.2.4", |
@@ -435,2 +435,3 @@ # Vocab | ||
$ vocab push --branch my-branch | ||
$ vocab push --branch my-branch --delete-unused-keys | ||
$ vocab pull --branch my-branch | ||
@@ -437,0 +438,0 @@ ``` |
@@ -32,3 +32,11 @@ /* eslint-disable no-console */ | ||
command: 'push', | ||
builder: () => yargs.options({ branch: branchDefinition }), | ||
builder: () => | ||
yargs.options({ | ||
branch: branchDefinition, | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false, | ||
}, | ||
}), | ||
handler: async (options) => { | ||
@@ -35,0 +43,0 @@ await push(options, config!); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33204
287
449
Updated@vocab/phrase@^1.1.0