We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1805578 commit a2eedbfCopy full SHA for a2eedbf
projects/optic/src/utils/capture.ts
@@ -6,6 +6,10 @@ export type SpawnCommand = {
6
args: string[];
7
};
8
9
+// commandSplitter() splits a command and its args into a SpawnCommand--in a naive fashion. it
10
+// assumes that `command` contains a single command, rather than something more complex. since
11
+// there is no validation or safety checks performed on `command` exercise caution where you
12
+// use this.
13
export function commandSplitter(command: string): SpawnCommand {
14
return {
15
cmd: command.split(' ')[0],
0 commit comments