Closed tdutrion closed 5 years ago
@tdutrion Can I use Symfony custom command for this or you add something else on your mind?
It has to be a symfony command indeed, as described here: symfony console documentation
Also, it can share its services with the AdminUserService or whatever this one is named, that is also consumed by the controller.
@tdutrion I don't quite get the read
part here, does it simply need to print at the terminal the user's information? As I understand it's like the list command but for OneOrNull result
Read is indeed just printing details. You can forget it if you think it's useless, I'm not sure what the use case would be to be fair :p
Maybe just check if a user already exist, but yeah it's not that relevant than list for instance
Removed, people can list | grep whatever
:p
Users can be managed by any other user using the web interface.
Problem is: we do not want a default user, and we want something easy to use for the person hosting the website.
Proposed solution: a command line tool that allows the host to create/update/delete/list users
app.users.create <email>
app.users.update <email> [--new-email=xxx] [--new-username=...]
app.users.delete <email> --confirm
(error if --confirm does not exists, but ask for confirmation again)app.users.list
related to #53 / #54