[server][core] Maintain separate trash table

This commit is contained in:
Abhishek Shroff
2025-04-10 17:27:18 +05:30
parent dd5bbe3688
commit 683f511a78
6 changed files with 35 additions and 13 deletions
+5 -1
View File
@@ -35,7 +35,11 @@ func setupDeleteCommand() *cobra.Command {
}
}
r.DeleteRecursive(false)
if _, err := r.DeleteRecursive(false); err != nil {
fmt.Println("cannot remove '" + id.String() + "': " + err.Error())
os.Exit(1)
}
}
},
}
+1 -1
View File
@@ -32,7 +32,7 @@ func setupListCommand() *cobra.Command {
}
},
}
cmd.Flags().IntP("num", "n", 5, "How many items to show")
cmd.Flags().UintP("num", "n", 5, "How many items to show")
cmd.Flags().StringP("cursor", "c", "", "Pagination Cursor")
return &cmd
}