bcup-cli 1.1.0 → 1.1.2

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bcup-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Lightweight Buttercup password manager cli",
5
5
  "bin": {
6
6
  "bcup-cli": "bin/bcup-cli"
@@ -19,7 +19,7 @@
19
19
  "cli",
20
20
  "bcup-cli"
21
21
  ],
22
- "author": "Ignacio Aliende García",
22
+ "author": "Ignacio Aliende García <ialiendeg@gmail.com>",
23
23
  "license": "MIT",
24
24
  "repository": "https://github.com/Usabi/bcup-cli",
25
25
  "dependencies": {
package/src/cli.ts CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import arg from 'arg';
4
4
  import { flatten, uniqBy } from 'lodash';
5
+ import { name, version, description, author, license, repository } from '../package.json';
5
6
 
6
7
  export function cli(args) {
7
8
  const options = parseArgumentsIntoOptions(args);
@@ -14,6 +15,12 @@ export function cli(args) {
14
15
  const clipboardy = require('clipboardy');
15
16
  const chalk = require('chalk');
16
17
  const prompt = require('prompt-sync')();
18
+
19
+ console.log(`= ${name} v${version} (${description}) =`);
20
+ console.log(`author: ${author}`);
21
+ console.log(`license: ${license}`);
22
+ console.log(`repository: ${repository}\n`);
23
+
17
24
  const password = prompt('Vault password: ', { echo: '*' })
18
25
  if (password == undefined || password.length == 0) return
19
26