Merge branch 'tweak/console-get-user' into 'dev'

Add get users to crafty command

See merge request crafty-controller/crafty-4!620
This commit is contained in:
Iain Powrie 2023-09-02 15:03:28 +00:00
commit 57dc58099b
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ TBD
- Refractor/Replace bleach with nh3 ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/616))
### Tweaks
- Polish/Enhance display for InApp Documentation ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/613))
- Add get_users command to Crafty's console ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/620))
### Lang
TBD
<br><br>

View File

@ -92,6 +92,9 @@ class MainPrompt(cmd.Cmd):
self.controller.users.update_user(user_id, {"password": new_pass})
def do_get_users(self, _line):
Console.info(self.controller.users.get_all_usernames())
@staticmethod
def do_threads(_line):
for thread in threading.enumerate():