Commit Graph

21 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit 7ee60dacdc
Misc fixups to priv diff logic, add tests 2024-08-08 21:02:25 +02:00
Oystein Kristoffer Tveit 69870147f5
Add a few more status prints to the commands 2024-08-08 00:56:30 +02:00
Oystein Kristoffer Tveit 7e71b5071f
Report back more detailed results from commands 2024-08-07 23:33:07 +02:00
Oystein Kristoffer Tveit 011bcf9edc
More spring cleaning for privs, add test 2024-08-07 23:00:38 +02:00
Oystein Kristoffer Tveit 1bb1c133e8
Consistently name db connection `connection` 2024-08-07 21:54:13 +02:00
Oystein Kristoffer Tveit 5a7516aed8
Rename most instances of "permission" to "privilege" 2024-08-07 21:51:03 +02:00
Oystein Kristoffer Tveit 71c712dce0
treewide: move some code around, spring cleaning 2024-08-07 21:17:27 +02:00
Oystein Kristoffer Tveit a3c894061c
Remove already fixed TODO 2024-08-07 17:27:29 +02:00
Oystein Kristoffer Tveit d0b750cd33
cargo clippy + fmt 2024-08-07 16:55:51 +02:00
Oystein Kristoffer Tveit d1c42dac8b
Wrap all operations in database transactions 2024-08-07 16:54:26 +02:00
Oystein Kristoffer Tveit f75d2fee7a
replace deps `edit` and `rpassword` with `dialoguer` 2024-08-07 16:43:26 +02:00
Oystein Kristoffer Tveit 01d502337d
Don't fail on erroneus db connection closure 2024-08-07 16:16:46 +02:00
Oystein Kristoffer Tveit 21c2fc2e8b
cargo fmt + clippy 2024-08-06 23:48:31 +02:00
Oystein Kristoffer Tveit fb7391a29c
edit-db-perm: ensure user exists before applying changes 2024-08-06 23:41:11 +02:00
Oystein Kristoffer Tveit 4353689a03 create compatibility layer for mysql-admutils commands 2024-08-06 23:31:47 +02:00
Felix Albrigtsen 44e23413ff Align privilege tables in edit-db-perm and show-db-perm, fixes #5 2024-07-12 23:35:57 +02:00
Felix Albrigtsen 4a94265eae Remove randomly generated example, run clippy. Fixes #6 2024-07-12 21:59:44 +02:00
Oystein Kristoffer Tveit 4dedde5edb
flatten subcommands and add better doc comments 2024-07-09 19:54:27 +02:00
Oystein Kristoffer Tveit b0bffc45ee
Add large parts of the permission editor 2024-07-09 19:51:59 +02:00
Oystein Kristoffer Tveit 3deeeb45c2
Let mysql connection shut down gracefully 2024-04-26 00:29:39 +02:00
Oystein Kristoffer Tveit ccf1b78ce8
Reimplement most of the tool:
Most of the tool has been reimplemented, with the exception of the
permission editing feature, which is currently half implemented. There
are also several TODOs spread around that would benefit from some action
2024-04-23 00:47:58 +02:00