Improve user deletion UX with the CLI
The dialog when trying to delete a user is no clear:
root@server: /opt/mobilizon # sudo -u mobilizon ./bin/mobilizon_ctl users.delete foo@bar.org
Continue with deleting user foo@bar.org? [Continue?]
We don’t know what to answer: y
, yes
, Continue
? If I hit Enter, what is the action taken?
The question should be something more classic:
Continue with deleting user foo@bar.org? [y/N]
When trying to delete an user who doesn’t exist, we have no information about that:
root@server: /opt/mobilizon # sudo -u mobilizon ./bin/mobilizon_ctl users.delete foo@bar.notexist
root@server: /opt/mobilizon #
We should have something like:
root@server: /opt/mobilizon # sudo -u mobilizon ./bin/mobilizon_ctl users.delete foo@bar.notexist
Sorry, the user foo@bar.notexist could not be found.
root@server: /opt/mobilizon #