+1
-1
@@ -7,3 +7,3 @@ var cp = require("child_process"); | ||
| function say(msg){ | ||
| cp.exec("say " + msg); | ||
| cp.exec("say -v Ralph " + msg); | ||
| } | ||
@@ -10,0 +10,0 @@ |
+13
-9
| #!/usr/bin/env node | ||
| "use strict"; | ||
| var parseArgv = require("command-line-args"), | ||
| var cliArgs = require("command-line-args"), | ||
| fs = require("fs"), | ||
| mfs = require("more-fs"), | ||
| FileSet = require("file-set"), | ||
| cp = require("child_process"), | ||
| dope = require("console-dope"), | ||
| w = require("wodge"), | ||
| s = require("string-ting"), | ||
| alert = require("./alert"); | ||
| var argv = parseArgv([ | ||
| { name: "do", type: "string" }, | ||
| var argv = cliArgs([ | ||
| { name: "do", type: String }, | ||
| { name: "when", type: Array, defaultOption: true }, | ||
| { name: "change", type: "boolean" } | ||
| ]); | ||
| { name: "change", type: Boolean }, | ||
| { name: "speak", alias: "s", type: Boolean } | ||
| ]).parse(); | ||
| var fileSet = new mfs.FileSet(argv.when); | ||
| var fileSet = FileSet(argv.when); | ||
@@ -27,6 +29,8 @@ fileSet.files.forEach(function(file){ | ||
| alert.bell(); | ||
| dope.red.bold.log("%s fucked up", w.symbol.cross); | ||
| if (argv.speak) alert.say("i fucked up, my lord"); | ||
| dope.red.bold.log("%s fucked up", s.symbol.cross); | ||
| dope.log(err.message); | ||
| } else { | ||
| dope.bold.green.log("%s work done", w.symbol.tick); | ||
| if (argv.speak) alert.say("my lord"); | ||
| dope.bold.green.log("%s work done", s.symbol.tick); | ||
| } | ||
@@ -33,0 +37,0 @@ if (stdout || stderr){ |
+4
-4
| { | ||
| "name": "baldrick", | ||
| "version": "0.0.7", | ||
| "version": "0.1.0", | ||
| "description": "Your own private dogsbody. Does the shitty work you can't be arsed to do.", | ||
@@ -12,7 +12,7 @@ "repository": "https://github.com/75lb/baldrick", | ||
| "dependencies": { | ||
| "command-line-args": "~0.0.0", | ||
| "command-line-args": "^0.2.0", | ||
| "console-dope": "~0.3.3", | ||
| "more-fs": "~0.3.0", | ||
| "wodge": "~0.6.4" | ||
| "file-set": "^0.1.0", | ||
| "string-ting": "0.0.1" | ||
| } | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
3175
7.7%49
8.89%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated