MCPcopy Index your code
hub / github.com/winfunc/opcode / loadCommands

Function loadCommands

src/components/SlashCommandsManager.tsx:128–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }, [projectPath]);
127
128 const loadCommands = async () => {
129 try {
130 setLoading(true);
131 setError(null);
132 const loadedCommands = await api.slashCommandsList(projectPath);
133 setCommands(loadedCommands);
134 } catch (err) {
135 console.error("Failed to load slash commands:", err);
136 setError("Failed to load commands");
137 } finally {
138 setLoading(false);
139 }
140 };
141
142 const handleCreateNew = () => {
143 setEditingCommand(null);

Callers 3

SlashCommandsManagerFunction · 0.70
handleSaveFunction · 0.70
confirmDeleteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected