Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/command/utils.ts
3557 views
1
/*
2
* utils.ts
3
*
4
* Copyright (C) 2025 Posit Software, PBC
5
*/
6
7
let someCommandFailed = false;
8
9
// we do this the roundabout way because there doesn't seem to be any clean way
10
// for cliffy commands to return values? Likely a skill issue on my part
11
export const signalCommandFailure = () => {
12
someCommandFailed = true;
13
};
14
15
export const commandFailed = () => {
16
return someCommandFailed;
17
};
18
19