feat: handle command hooks

feat: handle copy

feat: handle remove

feat: handle move and home ~ path

refactor: improve error handling in cmd-hook

feat: handlePwd
This commit is contained in:
Justin Lin committed 2025-05-05 19:55:40 +08:00
1 parent d755822908
commit 95c4fb71ae
3 files changed
+127 -42

No files matched your search

-1
View File
@@ -61,7 +61,6 @@ func main() {
os.Exit(1)
}
fmt.Println(string(jsonData))
req, err := http.NewRequest("POST", fmt.Sprintf("%s/api/v1/commands", backendUrl), bytes.NewBuffer(jsonData))
if err != nil {
fmt.Fprintf(os.Stderr, "Error creating request: %v\n", err)