@drifted/raven 0.0.6 → 0.0.8

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/bin/cli.js CHANGED
@@ -8,7 +8,7 @@ const JSONDataFile = require(path.join(__dirname, '..'));
8
8
 
9
9
 
10
10
  var parser = new CarrierPigeon({strict: true});
11
- parser.commands('usage', 'show', 'secret', 'init', 'generate', 'expose', 'conceal', 'encrypt', 'decrypt');
11
+ parser.commands('version', 'usage', 'show', 'secret', 'init', 'generate', 'expose', 'conceal', 'encrypt', 'decrypt');
12
12
  parser.option('file', {type: 'file'});
13
13
  parser.option('secret', {});
14
14
  parser.option('data', {});
@@ -165,3 +165,11 @@ if (command == 'usage') {
165
165
  }
166
166
 
167
167
 
168
+
169
+ if (command == 'version') {
170
+ var data = fs.readFileSync(path.join(__dirname, '..', 'package.json')).toString();
171
+ var json = JSON.parse(data);
172
+ console.log(json.version)
173
+ }
174
+
175
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drifted/raven",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/driftless-group/raven",
6
6
  "bin": {
@@ -15,9 +15,7 @@
15
15
  "type": "commonjs",
16
16
  "main": "index.js",
17
17
  "scripts": {
18
- "test": "mocha -w",
19
- "encrypt": "./bin/file.js encrypt",
20
- "decrypt": "./bin/file.js decrypt"
18
+ "test": "mocha -w"
21
19
  },
22
20
  "devDependencies": {
23
21
  "@drifted/qa": "^0.0.5"
File without changes