all-contributors-cli
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -13,3 +13,4 @@ #!/usr/bin/env node | ||
var defaultRCFile = '.all-contributorsrc'; | ||
var cwd = process.cwd(); | ||
var defaultRCFile = path.join(cwd, '.all-contributorsrc'); | ||
@@ -26,3 +27,3 @@ var argv = require('yargs') | ||
} catch (error) { | ||
if (configPath !== path.join(__dirname, defaultRCFile)) { | ||
if (configPath !== defaultRCFile) { | ||
console.error(error.message); | ||
@@ -40,3 +41,3 @@ process.exit(1); | ||
argv.contributions = argv._[2].split(','); | ||
argv.file = path.join(__dirname, argv.file); | ||
argv.file = path.join(cwd, argv.file); | ||
@@ -43,0 +44,0 @@ getUserInfo(argv.username, function(error, user) { |
{ | ||
"name": "all-contributors-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Tool to easily add recognition for new contributors", | ||
"bin": "cli.js", | ||
"bin": { | ||
"all-contributors": "cli.js" | ||
}, | ||
"scripts": { | ||
@@ -7,0 +9,0 @@ "test": "ava lib/**/*.test.js", |
@@ -9,3 +9,5 @@ # all-contributors-cli | ||
# Add new contributor <username>, who a contribution of type <contribution> | ||
all-contributors <username> <contribution> | ||
all-contributors add <username> <contribution> | ||
# Example: | ||
all-contributors add jfmengels code,doc | ||
``` | ||
@@ -71,3 +73,3 @@ Where: | ||
:---: | :---: | ||
[![Jeroen Engels](https://avatars.githubusercontent.com/u/3869412?v=3&s=100)<br />Jeroen Engels](https://github.com/jfmengels) | [📖💻⚠️](https://github.com/jfmengels/all-contributors-cli/commits?author=jfmengels) | ||
[![Jeroen Engels](https://avatars.githubusercontent.com/u/3869412?v=3&s=100)<br />Jeroen Engels](https://github.com/jfmengels) | [💻📖⚠️](https://github.com/jfmengels/all-contributors-cli/commits?author=jfmengels) | ||
@@ -74,0 +76,0 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. |
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
12936
249
80