From dea828f6d9b7161eea4df1d2011411972745deaf Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 13 May 2020 16:07:32 +0200 Subject: Add aliases for the `remove` command Even if the user is familiar with bosun(1), they might try to remove a role by invoking it with `delete` or `del` instead of `remove`. As these are very common synonyms, add a simple DWIM mechanic to enhance the user experience. --- bosun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bosun') diff --git a/bosun b/bosun index cbc9718..08f1842 100755 --- a/bosun +++ b/bosun @@ -96,6 +96,6 @@ case $cmd in flush) flush;; list) list "$@";; rebuild) rebuild "$@";; - remove) remove "$@";; + del|delete|remove) remove "$@";; *) err "no such command '$cmd'"; usage;; esac -- cgit v1.2.3-2-gb3c3