@vocab/cli 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @vocab/cli
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`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.
8
+
9
+ **EXAMPLE USAGE**:
10
+
11
+ ```bash
12
+ vocab push --delete-unused-keys
13
+ ```
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382), [`159d559`](https://github.com/seek-oss/vocab/commit/159d559c87c66c3e91c707fb45a1f67ebec07b4d)]:
18
+ - @vocab/phrase@1.1.0
19
+
3
20
  ## 1.1.0
4
21
 
5
22
  ### Minor Changes
package/README.md CHANGED
@@ -432,6 +432,7 @@ Vocab can be used to synchronize your translations with translations from a remo
432
432
 
433
433
  ```bash
434
434
  $ vocab push --branch my-branch
435
+ $ vocab push --branch my-branch --delete-unused-keys
435
436
  $ vocab pull --branch my-branch
436
437
  ```
437
438
 
@@ -32,7 +32,12 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
32
32
  }).command({
33
33
  command: 'push',
34
34
  builder: () => yargs__default['default'].options({
35
- branch: branchDefinition
35
+ branch: branchDefinition,
36
+ 'delete-unused-keys': {
37
+ type: 'boolean',
38
+ describe: 'Whether or not to delete unused keys after pushing',
39
+ default: false
40
+ }
36
41
  }),
37
42
  handler: async options => {
38
43
  await phrase.push(options, config);
@@ -32,7 +32,12 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
32
32
  }).command({
33
33
  command: 'push',
34
34
  builder: () => yargs__default['default'].options({
35
- branch: branchDefinition
35
+ branch: branchDefinition,
36
+ 'delete-unused-keys': {
37
+ type: 'boolean',
38
+ describe: 'Whether or not to delete unused keys after pushing',
39
+ default: false
40
+ }
36
41
  }),
37
42
  handler: async options => {
38
43
  await phrase.push(options, config);
@@ -25,7 +25,12 @@ yargs(process.argv.slice(2)).scriptName('vocab').option('config', {
25
25
  }).command({
26
26
  command: 'push',
27
27
  builder: () => yargs.options({
28
- branch: branchDefinition
28
+ branch: branchDefinition,
29
+ 'delete-unused-keys': {
30
+ type: 'boolean',
31
+ describe: 'Whether or not to delete unused keys after pushing',
32
+ default: false
33
+ }
29
34
  }),
30
35
  handler: async options => {
31
36
  await push(options, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocab/cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "dist/vocab-cli.cjs.js",
5
5
  "module": "dist/vocab-cli.esm.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@types/env-ci": "^3.1.0",
13
13
  "@vocab/core": "^1.1.0",
14
- "@vocab/phrase": "^1.0.0",
14
+ "@vocab/phrase": "^1.1.0",
15
15
  "env-ci": "^5.0.2",
16
16
  "fast-glob": "^3.2.4",
17
17
  "form-data": "^3.0.0",
package/src/index.ts CHANGED
@@ -29,7 +29,15 @@ yargs(process.argv.slice(2))
29
29
  })
30
30
  .command({
31
31
  command: 'push',
32
- builder: () => yargs.options({ branch: branchDefinition }),
32
+ builder: () =>
33
+ yargs.options({
34
+ branch: branchDefinition,
35
+ 'delete-unused-keys': {
36
+ type: 'boolean',
37
+ describe: 'Whether or not to delete unused keys after pushing',
38
+ default: false,
39
+ },
40
+ }),
33
41
  handler: async (options) => {
34
42
  await push(options, config!);
35
43
  },