11 lines
211 B
TypeScript
11 lines
211 B
TypeScript
////
|
|
// runs commands and such.
|
|
|
|
type CommandResult = {
|
|
type: "ok" | "error"
|
|
data: any
|
|
}
|
|
|
|
export function runCommand(input: string): CommandResult {
|
|
return { type: "ok", data: "command: " + input }
|
|
} |