MCPcopy Index your code
hub / github.com/devlive-community/pageforge / execCommand

Method execCommand

lib/commands/deploy-github.js:108–117  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

106 }
107
108 execCommand(command, args, options = {}) {
109 const result = spawnSync(command, args, {
110 stdio: 'inherit',
111 ...options
112 });
113
114 if (result.status !== 0) {
115 throw new Error(`🤯 命令 '${command} ${args.join(' ')}' 无效`);
116 }
117 }
118
119 getPublicUrl(repository, cname) {
120 if (cname) {

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected