MCPcopy Create free account
hub / github.com/RootbeerComputer/backend-GPT / runCommand

Function runCommand

frontend/src/App.js:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }, []);
18
19 const runCommand = async e => {
20 e.preventDefault();
21 if (!command) {
22 alert("please enter something");
23 return;
24 }
25 setCommandOutput("Command in progress");
26 setCommandOutput(await APIHelper.runCommand(command));
27 const todoList = await APIHelper.getAllTodos();
28 setTodos([...todoList]);
29 }
30
31 const createTodo = async e => {
32 e.preventDefault();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected