reconstruct the access control cli

This commit is contained in:
2025-10-09 18:52:47 +08:00
parent 11d138751a
commit 1fb26cfb71
5 changed files with 716 additions and 182 deletions

6
src/lib/common.ts Normal file
View File

@@ -0,0 +1,6 @@
export function parseBoolean(obj: string): boolean | undefined {
const str = obj.toLowerCase();
if (str === "true") return true;
else if (str === "false") return false;
else return undefined;
}