Commit Graph

133 Commits

Author SHA1 Message Date
Jack Wills a34c046dee fix: is_oxker_in_container()
Check is both is_oxker and running in a container, so that oxker container commands will only be ignored if both are true
2024-01-13 23:01:22 +00:00
Jack Wills b9df4e446a tests: AppData tests 2024-01-13 22:51:42 +00:00
Jack Wills a722731c6a refactor: string_wrapper .get() return &str 2024-01-05 14:14:55 +00:00
Jack Wills ccf8b55a74 refactor: sort_containers 2024-01-02 19:02:36 +00:00
Jack Wills 56dba91e9a refactor: variable name changes 2023-11-19 23:03:41 +00:00
Jack Wills cd1da2ad96 fix: State ordering use .order() 2023-11-19 22:52:43 +00:00
Jack Wills a15da5ed43 feat: export logs feature, closes #1
Save logs to a file.
 `--logs-dir` cli arg to change from the default location.

Refactor of input_handler
2023-11-19 22:25:28 +00:00
Jack Wills 3a6489396e fix: sort created_at clash, closes #22
Additionally sort by name, so that if a clash of first comparison, the order will be consistent
2023-11-19 11:05:17 +00:00
Jack Wills 0e5ee143b0 feat: exec mode improvements
Use Bollard library to exec in pure Rust.

`--use-cli` cli arg, will then only try to exec into containers using
Docker.

Only try to exec into a container if the state == Running.
2023-11-18 22:44:39 +00:00
Jack Wills 40090865fd refactor: Multiple UI improvements;
Use FrameData struct to store commonly accessed data, in order to
reduce mutex locks.

rename unpause to resume

use get_selected_panel() function instead of directly
gui_state.selected_panel

debug mode now shows some usefull information
2023-11-16 11:19:42 +00:00
Jack Wills c8077bca0b feat: Docker exec mode, closes #28 2023-11-16 11:19:09 +00:00
Jack Wills 09bf70abd2 chore: release v0.3.3 2023-10-21 16:25:42 +00:00
Jack Wills 44f581f5b3 refactor: LogsTZ from &str 2023-10-18 10:25:34 +00:00
Jack Wills ca79893df5 refactor: from string impl
Remove redudant impl's, use `.as_str()`
2023-09-17 18:41:10 +00:00
Jack Wills 76fd178894 chore: release v0.3.2 2023-08-28 13:32:34 +00:00
Jack Wills 62c78dfaa5 refactor: set_error take gui_state
insert into gui_state status when setting error
2023-08-26 12:40:53 +00:00
Jack Wills 937202fe34 feat: delete container, closes #27
Enable a user to delete a container. A dialog will pop up to ask the user to confirm the deletion. A user can then click on either button, or press N/Y to make a selection
2023-03-30 02:12:03 +00:00
Jack Wills f906799782 fix: alter the help box link underlining 2023-03-29 17:20:20 +00:00
Jack Wills d431f85021 feat: use ratatui 2023-03-19 21:08:33 +00:00
Jack Wills cb9686cfe8 chore: release v0.2.5 2023-03-13 22:01:39 +00:00
Jack Wills 79de92c392 refactor: use unwrap_or_default() 2023-03-11 21:04:44 +00:00
Jack Wills 9d2e72086b docs: comment typos 2023-03-02 03:54:55 +00:00
Jack Wills 04c26fe8fc refactor: improve the get_width function
Just use x = x.max(y) for the column widths, instead of the previous, laborious, check then update methods
2023-03-01 19:14:39 +00:00
Kian-Meng Ang a0e2eb38ae docs: fix typos
Found via `typos --format brief`
2023-02-03 10:21:16 +08:00
Jack Wills c77c60e151 chore: release v0.2.1 2023-01-29 02:46:38 +00:00
Jack Wills d7a8639d8b docs: changelog 2023-01-29 02:12:02 +00:00
Jack Wills c0bb5355d6 refactor: app_data methods re-ordered & renamed 2023-01-29 01:52:38 +00:00
Jack Wills 2ab88eb26e chore: dependencies updated 2023-01-28 21:55:40 +00:00
Jack Wills b4488e4bdb refactor: major refactor of internal data handling
What started off as an inquisitive look at how the gui drawing blocks get the data they require in order to draw to the screen, ended up as a realisation  that it could be achieved in a better manner. Basically just use x.get(y), instead of using x[y] all over the place
2023-01-28 20:44:09 +00:00
Jack Wills 657ea2d751 feat: Logs in own struct
Store the logs, and timestamp into a hashset, so that won't push data into the vec if it's already in the hashset, close #11
2023-01-18 02:04:44 +00:00
Jack Wills bd7dfcd2c5 feat: align memory columns correctly, closes #20
use kB as minimum bytestats unit, screenshot updated
2023-01-14 18:01:38 +00:00
Jack Wills 8bd6c94b49 chore: release v0.1.11 2023-01-03 19:23:20 +00:00
Jack Wills cfdea77594 fix: sort containers on every update_stats(), if a sort is set 2023-01-03 04:44:47 +00:00
Jack Wills bf9dcac704 chore: Rust 1.66 linting 2022-12-15 16:34:24 +00:00
Jack Wills e71802fe21 chore: release v0.1.9 2022-12-05 14:06:22 +00:00
Jack Wills 552c26bc5c fix: only sort if no containers currently set, i.e. on first attempt 2022-12-05 13:50:14 +00:00
Jack Wills 160b8021b1 fix: disallow commands to be sent so an oxker container, closes #19 2022-12-05 03:52:41 +00:00
Jack Wills 1adb61ce3b fix: if no container created time, use 0 instead of system time 2022-12-05 03:22:08 +00:00
Jack Wills cf14ba4989 feat: default order of created time, reset sorted, closes #18 2022-12-04 21:42:54 +00:00
Jack Wills 8f3a151371 chore: aggressive linting, with rust v1.65.0 2022-11-06 01:34:13 +00:00
Jack Wills 9cb0c414af feat: log title show container name, closes #16 2022-10-16 01:22:04 +00:00
Jack Wills 9e9d51559a feat: use gui_status for various gui states 2022-10-15 00:23:26 +00:00
Jack Wills 90e26c300e wip: gui_status, should use a hashset? 2022-10-14 21:26:20 +00:00
Jack Wills 6492012d5f chore: release v0.1.5 2022-10-07 21:13:21 +00:00
Jack Wills a77f690a49 refactor: replace iter() to into_iter(), and remove useless .iters()'s 2022-10-07 02:43:04 +00:00
Jack Wills 3661d696e9 refactor: map_or_else to map_or 2022-10-07 01:43:58 +00:00
Jack Wills 6bee4d007a refactor: clone()'s removed, allow(precision_loss) 2022-10-02 01:14:42 +00:00
Jack Wills f5fc446295 refactor: use map_or_else 2022-10-02 00:31:01 +00:00
Jack Wills a7b8df6b21 refactor: derive Default for CpuStats + ByteStats 2022-10-01 23:40:25 +00:00
Jack Wills 41cbb84f28 feat: use ContainerId new_type 2022-10-01 23:27:38 +00:00