@gauseen/gum
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@gauseen/gum", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "git multiple user config manager", | ||
"bin": "./src/bin/index.js", | ||
"bin": "./bin/index.js", | ||
"scripts": {}, | ||
@@ -7,0 +7,0 @@ "keywords": [ |
@@ -35,2 +35,6 @@ # Git multiple user config manager | ||
Options: | ||
-V, --version output the version number | ||
-h, --help display help for command | ||
Commands: | ||
@@ -46,1 +50,8 @@ list List all the user config group | ||
``` | ||
## Change Log | ||
### v1.0.2 | ||
- feat: `gum --version` cmd | ||
- fix: support node v9.0.0 |
@@ -17,4 +17,8 @@ const shell = require('shelljs'); | ||
const pkg = require('../package.json'); | ||
const program = new commander.Command('gum'); | ||
program.version(pkg.version); | ||
program.command('list').description('List all the user config group').action(onList); | ||
@@ -21,0 +25,0 @@ |
@@ -26,4 +26,7 @@ const path = require('path'); | ||
function getUsingGitUserConfig() { | ||
const name = getProjectGitUserConfig()?.name || getGlobalGitUserConfig()?.name; | ||
const email = getProjectGitUserConfig()?.email || getGlobalGitUserConfig()?.email; | ||
const project = getProjectGitUserConfig() || {}; | ||
const global = getGlobalGitUserConfig() || {}; | ||
const name = project.name || global.name; | ||
const email = project.email || global.email; | ||
return { | ||
@@ -30,0 +33,0 @@ email, |
8217
183
56