Comparing version 0.0.4 to 0.0.5
@@ -8,3 +8,7 @@ const { spawnSync } = require("child_process"); | ||
module.exports = function (params) { | ||
spawnSync("git", ["commit", "-m", format(params)], { stdio: "inherit" }); | ||
} | ||
spawnSync("git", ["commit", `-${params.addFlag ? "a" : ""}m`, format(params)], { stdio: "inherit" }); | ||
if (params.gitPush) { | ||
spawnSync("git", ["push"], { stdio: "inherit" }); | ||
} | ||
} |
@@ -9,2 +9,7 @@ const { loadRCFile } = require("./utils"); | ||
{ | ||
type: "confirm", | ||
name: "addFlag", | ||
message: "Do you want to add git changes before commit?", | ||
default: true | ||
}, { | ||
type: "list", | ||
@@ -24,3 +29,8 @@ name: "type", | ||
default: "i am too lazy" | ||
}, { | ||
type: "confirm", | ||
name: "gitPush", | ||
message: "Do you want to push your commit?", | ||
default: true | ||
} | ||
]; |
{ | ||
"name": "commitify", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Easy git commit message with meaning", | ||
@@ -5,0 +5,0 @@ "preferGlobal": true, |
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
3461
85