Skip to content

Commit 20993be

Browse files
committed
new file
1 parent 62ce9c9 commit 20993be

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/command/utils.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
};

0 commit comments

Comments
 (0)