Comparing version 1.0.1 to 1.0.2
@@ -27,3 +27,3 @@ 'use strict'; | ||
dots.saveDots(flags.bundle, args.slice(1, args.length)); | ||
dots.save(flags.bundle, args.slice(1, args.length)); | ||
break; | ||
@@ -33,5 +33,10 @@ | ||
dots.getDots(args[1]); | ||
dots.get(args[1]); | ||
break; | ||
case 'list': | ||
dots.list(); | ||
break; | ||
} | ||
}); |
@@ -50,6 +50,18 @@ 'use strict'; | ||
function listDots() { | ||
fs.readdir(utils.dotsHome, function (err, dots) { | ||
utils.handleError(err); | ||
console.log(dots.reduce(function (agg, dot) { | ||
return agg + '\n' + dot; | ||
})); | ||
}); | ||
} | ||
module.exports = { | ||
saveDots: handleDots.bind(this, false), | ||
getDots: function (dir) { | ||
save: handleDots.bind(this, false), | ||
get: function (dir) { | ||
@@ -61,3 +73,4 @@ fs.readdir(homeDot(dir || 'default'), function (err, dots) { | ||
}); | ||
} | ||
}, | ||
list: listDots | ||
}; |
{ | ||
"name": "gimme-dots", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gimme my dotfiles! Store your common dotfiles and request them into your new project.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -13,2 +13,4 @@ # Gimme my dotfiles! | ||
![terminal workflow gif](workflow.gif) | ||
Dotfiles are stored in bundles within `~/.dots` dir. | ||
@@ -27,1 +29,6 @@ | ||
*If no name specified, `dots` will use `default` bundle.* | ||
List all bundles: | ||
``` | ||
dots list | ||
``` |
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
57144
11
91
33