cmd: policies: test: Stub for new 'policies test' command
This change just adds the cli command and stub/empty implementation.
There's not even argument checking yet.
@@ -60,6 +60,19 @@ func init() {
setUserEnv, checkRequiredFlags, detachPolicies,
),
},
+
+ {
+ Name: "test",
+ Usage: "Test a user's access to a path",
+ ArgsUsage: "<c|r|u|d|l> <username> <path>",
+ Flags: []cli.Flag{
+ orgFlag("org to test policy for", true),
+ },
+ Action: chain(
+ ensureDaemon, ensureSession, loadDirPrefs, loadPrefDefaults,
+ setUserEnv, checkRequiredFlags, testPolicies,
+ ),
+ },
},
}
Cmds = append(Cmds, policies)
@@ -309,3 +322,7 @@ func viewPolicyCmd(ctx *cli.Context) error {
return nil
}
+
+func testPolicies(ctx *cli.Context) error {
+ return nil
+}
