Skip to content

Commit

Permalink
quotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Nov 15, 2023
1 parent c11687b commit 68eed83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/src/shared/next-gen-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ export async function nextGenParse({
logger,
id,
}: NextGenParseParams): Promise<CliCommandResponse> {
const commandArgs = ['build', repoDir, '--output', `${repoDir}/bundle.zip`, RSTSPEC_FLAG];
const commandArgs = ['build', `"${repoDir}"`, '--output', `"${repoDir}/bundle.zip"`];

if (patchId && commitHash) {
commandArgs.push('--commit');
commandArgs.push(commitHash);
commandArgs.push(`"${commitHash}"`);

commandArgs.push('--patch');
commandArgs.push(patchId);
}

commandArgs.push(RSTSPEC_FLAG);

logger.save(id, `COMMAND for parse: ${commandArgs.join(' ')}`);

return executeCliCommand({ command: 'snooty', args: commandArgs });
Expand Down

0 comments on commit 68eed83

Please sign in to comment.