Commit Graph

61 Commits

Author SHA1 Message Date
Jack Wills b608432865 refactor: variable names updated 2023-11-20 10:27:54 +00:00
Jack Wills 56dba91e9a refactor: variable name changes 2023-11-19 23:03:41 +00:00
Jack Wills d200d13c26 refactor: dead code removed 2023-11-19 22:48:49 +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 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 faeaca0cd1 refactor: set_info_box take &str 2023-10-18 10:44:49 +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 3b61a704e2 feat: Clippy mem drop,
re-arrange .lock() ordering, and use `value_capture!`, to satisfy has_significant_drop rule
2023-06-14 20:47:24 +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 e3d0d64b4d docs: changelog 2023-03-13 00:56:16 +00:00
Jack Wills 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 598f67c6f6 feat: KeyEvents send modifier, so can quit on ctrl + c 2023-03-02 16:09:57 +00:00
Jack Wills 340893a860 fix: correctly set gui error 2023-03-02 05:18:06 +00:00
Jack Wills c74f6c1179 refactor: enable_mouse_capture() moved into Ui struct 2023-03-02 04:10:38 +00:00
Jack Wills 0a1b531116 feat: Acutal fix the the mouse events output
The EnableMouseCapture from Crossterm was too broad, by only enabling a subject of the events, 1) performance is improvedand 2) and intermittent bug where mouse events were output to stdout has been removed
2023-03-02 01:09:17 +00:00
Jack Wills 2626250ace fix: stop_running function
Use stop_running to set the global is_running AtomicBool to false, and to also, on a seperate thread, enable & then disable mouse capture, as was experience strange issue on Linux & WSL with mouse movements being piped to stdout
2023-02-28 18:10:24 +00:00
Jack Wills 31bfaa7a95 wip: fix for mouse capture bug 2023-02-28 04:10:31 +00:00
Jack Wills c0bb5355d6 refactor: app_data methods re-ordered & renamed 2023-01-29 01:52:38 +00:00
Jack Wills c4d80061da revert: is_running AtomicBool back to SeqCst 2023-01-28 20:45:02 +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 0350293de3 refactor: param reduction, AtomicBool to Relaxed 2023-01-14 17:59:33 +00:00
Jack Wills 3cdc5fae02 refactor: input sort executed in app_data struct sort_by_header() 2023-01-03 04:43:43 +00:00
Jack Wills e71802fe21 chore: release v0.1.9 2022-12-05 14:06:22 +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 d1de291473 fix: sort by ascending first 2022-12-05 02:05:14 +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 61cfa9394f docs: comment typo 2022-11-10 02:42:43 +00:00
Jack Wills a98e8b7260 chore: cargo fmt 2022-10-16 00:00:41 +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 f5fc446295 refactor: use map_or_else 2022-10-02 00:31:01 +00:00
Jack Wills 41cbb84f28 feat: use ContainerId new_type 2022-10-01 23:27:38 +00:00
Jack Wills e76878f424 refactor: Impl Copy where able to 2022-10-01 19:57:27 +00:00
Jack Wills 7ec58e79a1 fix: docker update mem&cpu use binate value
spawn_id for mem&cpu use the current binate value, to enable two concurrent executes from the same docker container id
2022-09-07 04:18:30 +00:00
Jack Wills 18713c091e fix: KeyCodes check for uppercase
When checking keyboard button press, check for upper and lower cases
2022-09-07 03:02:02 +00:00
Jack Wills 1263662bd9 chore: linting pedantic 2022-08-04 12:56:45 +00:00
Jack Wills d0f617820c feat: spawn docker updates into own thread
Collects spawns into a hashmap, then on next update if spawn exists in hash map, don't bother to run another update
2022-07-23 02:46:38 +00:00
Jack Wills f5504c47c5 refactor: input sorted 2022-07-23 01:15:58 +00:00
Jack Wills 3b69cc29fa docs: screenshot 2022-07-22 23:56:30 +00:00
Jack Wills c39e224d56 docs: readme updated 2022-07-22 20:54:43 +00:00
Jack Wills a70d6fa968 refacor: creation & drawing of headers 2022-07-22 20:38:22 +00:00
Jack Wills 96ca208197 wip: header+column widths 2022-07-22 19:38:19 +00:00
Jack Wills d14744b378 wip: sort by 2022-07-22 16:33:40 +00:00
Jack Wills 1674db8a20 docs: comments improved 2022-05-30 14:30:25 +00:00
Jack Wills c5c859d6b6 refactor: input_handler unwraps()
feat: disregarding docker command errors

replace if_some() +unwrap() with if let Some().
Docker commands unwrap()  replace with unwrap_or(())
2022-05-30 01:11:54 +00:00