[#521] cli: Add common aliases to policy playground commands
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
24dffdac6f
commit
57e7fb5ccf
1 changed files with 2 additions and 0 deletions
|
@ -183,10 +183,12 @@ func (repl *policyPlaygroundREPL) run() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdHandlers := map[string]func([]string) error{
|
cmdHandlers := map[string]func([]string) error{
|
||||||
|
"list": repl.handleLs,
|
||||||
"ls": repl.handleLs,
|
"ls": repl.handleLs,
|
||||||
"add": repl.handleAdd,
|
"add": repl.handleAdd,
|
||||||
"load": repl.handleLoad,
|
"load": repl.handleLoad,
|
||||||
"remove": repl.handleRemove,
|
"remove": repl.handleRemove,
|
||||||
|
"rm": repl.handleRemove,
|
||||||
"eval": repl.handleEval,
|
"eval": repl.handleEval,
|
||||||
}
|
}
|
||||||
for reader := bufio.NewReader(os.Stdin); ; {
|
for reader := bufio.NewReader(os.Stdin); ; {
|
||||||
|
|
Loading…
Reference in a new issue