MCPcopy Index your code
hub / github.com/actions/setup-node / getCommandOutputNotEmpty

Function getCommandOutputNotEmpty

src/cache-utils.ts:89–99  ·  view source on GitHub ↗
(
  toolCommand: string,
  error: string,
  cwd?: string
)

Source from the content-addressed store, hash-verified

87};
88
89export const getCommandOutputNotEmpty = async (
90 toolCommand: string,
91 error: string,
92 cwd?: string
93): Promise<string> => {
94 const stdOut = getCommandOutput(toolCommand, cwd);
95 if (!stdOut) {
96 throw new Error(error);
97 }
98 return stdOut;
99};
100
101export const getPackageManagerInfo = async (packageManager: string) => {
102 if (packageManager === 'npm') {

Callers 1

cache-utils.tsFile · 0.85

Calls 1

getCommandOutputFunction · 0.85

Tested by

no test coverage detected