[#521] cli: Add common aliases to policy playground commands

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
Alejandro Lopez 2023-07-17 10:23:51 +03:00
parent d0a769d88d
commit 79fae06d31

View file

@ -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); ; {