MCPcopy Create free account
hub / github.com/bailicangdu/react-pxq / getGitStatus

Function getGitStatus

scripts/eject.js:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27const cyan = chalk.cyan;
28
29function getGitStatus() {
30 try {
31 let stdout = execSync(`git status --porcelain`, {
32 stdio: ['pipe', 'pipe', 'ignore'],
33 }).toString();
34 return stdout.trim();
35 } catch (e) {
36 return '';
37 }
38}
39
40inquirer
41 .prompt({

Callers 1

eject.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected