[#521] cli: Add common aliases to policy playground commands
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Build / Build Components (1.19) (pull_request) Successful in 3m46s
Build / Build Components (1.20) (pull_request) Successful in 3m25s
Tests and linters / Tests (1.19) (pull_request) Successful in 5m8s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m42s
Tests and linters / Lint (pull_request) Successful in 9m36s
Tests and linters / Tests with -race (pull_request) Successful in 5m0s
Tests and linters / Staticcheck (pull_request) Successful in 12m36s
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Build / Build Components (1.19) (pull_request) Successful in 3m46s
Build / Build Components (1.20) (pull_request) Successful in 3m25s
Tests and linters / Tests (1.19) (pull_request) Successful in 5m8s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m42s
Tests and linters / Lint (pull_request) Successful in 9m36s
Tests and linters / Tests with -race (pull_request) Successful in 5m0s
Tests and linters / Staticcheck (pull_request) Successful in 12m36s
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
d0a769d88d
commit
79fae06d31
1 changed files with 2 additions and 0 deletions
|
@ -166,10 +166,12 @@ func (repl *policyPlaygroundREPL) run() error {
|
|||
}
|
||||
|
||||
cmdHandlers := map[string]func([]string) error{
|
||||
"list": repl.handleLs,
|
||||
"ls": repl.handleLs,
|
||||
"add": repl.handleAdd,
|
||||
"load": repl.handleLoad,
|
||||
"remove": repl.handleRemove,
|
||||
"rm": repl.handleRemove,
|
||||
"eval": repl.handleEval,
|
||||
}
|
||||
for reader := bufio.NewReader(os.Stdin); ; {
|
||||
|
|
Loading…
Reference in a new issue