Commit Graph

283 Commits

Author SHA1 Message Date
Jack Wills 2de76e2f35 chore: lints moved from main.rs to Cargo.toml 2023-11-19 22:48:40 +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 d08cbb6640 refactor: remove redundant loop 2023-11-16 18:03:11 +00:00
Jack Wills aafe89d0eb docs: changelog 2023-11-16 11:40:01 +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 650aa0fc91 refactor: DockerData refactors
Use a croner in the docker_data, instead of in the ui thread, as this thread will be paused when in exec mode.

is_initilised is again done in docker_data, after stats have been calculated

use bollard from git, waiting for new release due to Docker changes
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
Daniel Boll e1998c9fca refactor(draw_blocks.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability
refactor(mod.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability

chore(draw_blocks.rs): format code using rustfmt to improve code readability
chore(draw_blocks.rs): remove unnecessary indentation in NAME_TEXT constant to improve code readability

chore(draw_blocks.rs): remove unnecessary fmt skip directive

Signed-off-by: Daniel Boll <danielboll.academico@gmail.com>
2023-11-16 11:18:49 +00:00
Jack Wills 4e9fb65fe2 chore: Dependencies updated
ratatui v0.24.0 fixes
2023-11-16 11:11:59 +00:00
Jack Wills 09bf70abd2 chore: release v0.3.3 2023-10-21 16:25:42 +00:00
Jack Wills faeaca0cd1 refactor: set_info_box take &str 2023-10-18 10:44:49 +00:00
Jack Wills a6ff412431 refactor: parse_args/mod.rs > parse_args.rs 2023-10-18 10:38:06 +00:00
Jack Wills 44f581f5b3 refactor: LogsTZ from &str 2023-10-18 10:25:34 +00:00
Jack Wills 21234c66c3 chore: Rust 1.73 linting 2023-10-05 19:54:05 +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 18c3ed4337 refactor: env handling
target specific env's rather than looping through them all
2023-09-17 18:19:48 +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 2e27462d1b refactor: loading_spin fn remove async 2023-08-24 16:26:30 +00:00
Jack Wills 1095078764 feat: Docker Host env, closes #30
oxker will check for an optional cli_arg `--host`, then the $DOCKER_HOST env, and if found use for connection.

Fix unresponsiveness in debug mode when error set
2023-08-17 15:34:18 +00:00
Jack Wills e17aad06cd feat: replace loading enum with FRAMES const 2023-06-14 20:47:40 +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 591b569e60 feat: value_capture! for draw_frame values 2023-06-14 20:23:05 +00:00
Jack Wills ef39082276 chore: release v0.3.1 2023-06-04 00:40:39 +00:00
Jack Wills 0d37ac5501 chores: ratatui span -> lines 2023-06-03 23:41:16 +00:00
Jack Wills 4679ddc885 chore: Spans -> Line, ratatui 0.21 update 2023-06-03 20:30:00 +00:00
Jack Wills 18b838a0fc chore: release v0.3.0 2023-03-30 20:06:08 +00:00
Jack Wills b25f8b18f4 feat: clear delete_map on set_delete_container(None) 2023-03-30 19:29:40 +00:00
Jack Wills 5a360360ba chore: dependencies updated 2023-03-30 18:44:14 +00:00
Jack Wills 932644b74f docs: changelog 2023-03-30 03:15:11 +00:00
Jack Wills d628e80299 refactor: popup() use saturating_x() rather than checked_x() 2023-03-30 02:28:53 +00:00
Jack Wills b9c125da46 fix: out of bound bug in heading_bar
use a `saturating_sub` to calculate the column_width
2023-03-30 02:22:47 +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 7c92ffef7d refactor: button_item() include brackets 2023-03-29 18:00:31 +00:00
Jack Wills e0b49be840 fix: "-d" arg error text updated 2023-03-29 17:29:19 +00:00
Jack Wills f906799782 fix: alter the help box link underlining 2023-03-29 17:20:20 +00:00
Jack Wills f23dac9bc8 fix: alter the help box link underlining 2023-03-20 00:06:21 +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 e3d0d64b4d docs: changelog 2023-03-13 00:56:16 +00:00
Jack Wills 79de92c392 refactor: use unwrap_or_default() 2023-03-11 21:04:44 +00:00
Jack Wills d9f0bd5566 refactor: result return 2023-03-11 21:04:16 +00:00
Jack Wills 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 5582c45403 chore: Rust 1.68.0 clippy linting 2023-03-09 15:12:51 +00:00
Jack Wills 924f14e998 feat: increase mpsc channel size (16 to 32 messages) 2023-03-07 03:24:42 +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 507660d835 feat: only send relevant mouse events to input handler 2023-03-02 16:01:37 +00:00
Jack Wills 340893a860 fix: correctly set gui error 2023-03-02 05:18:06 +00:00