X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/2ee5022632bb4c4f183991b387e4eff7f76dbad8..06bd821502f57dcb4ef89295b221fc2b9a4f1ae3:/src/main-admin.sml diff --git a/src/main-admin.sml b/src/main-admin.sml index 201456e..183db60 100644 --- a/src/main-admin.sml +++ b/src/main-admin.sml @@ -55,6 +55,12 @@ val _ = | ["tpe", node, uname] => OS.Process.exit (Main.requestTrustedPath {node = node, uname = uname}) | ["sockperm", node, uname] => OS.Process.exit (Main.requestSocketPerm {node = node, uname = uname}) | ["firewall", node, uname] => OS.Process.exit (Main.requestFirewall {node = node, uname = uname}) + | ["describe", dom] => Main.requestDescribe dom + | ["users"] => + (Acl.read Config.aclFile; + app (fn s => (print s; print "\n")) (Acl.users ())) + | _ => (print "Invalid command-line arguments\n"; - print "See the documentation: http://wiki.hcoop.net/wiki/DomTool/AdminProcedures\n")) - handle OpenSSL.OpenSSL s => print ("OpenSSL exception: " ^ s ^ "\n") + print "See the documentation: http://wiki.hcoop.net/DomTool/AdminProcedures\n")) + handle OpenSSL.OpenSSL s => (print ("OpenSSL exception: " ^ s ^ "\n"); + OS.Process.exit OS.Process.failure)