chore: release v0.0.2
This commit is contained in:
+12
-2
@@ -1,5 +1,15 @@
|
||||
### 2022-04-25
|
||||
### 2022-04-29
|
||||
|
||||
### Features
|
||||
+ allow toggling of mouse caputre, to select & copy text with mouse, closes [#2], [aec184ea22b289e91942a4c3e6a415685884bc47]
|
||||
+ show id column, [b10f927481c9e38a48c1d4b94e744ec48e8b6ba6]
|
||||
+ draw_popup, using enum to draw in one of 9 areas, closes [#6], [1017850a6cc91328abc1127bdb117495f5e909d8]
|
||||
+ use a message rx/sx for all docker commands, remove update loop, wait for update message from gui instead, [9b70fdfad7b38361ebee301bdc2545d3f0dfcf9e]
|
||||
|
||||
### Fixes
|
||||
+ readme.md typo, [589501f9a4a0bfabdb0654e68cc0c752c529d97a]
|
||||
+ column heading mem > memory, [5e8e6b590b06f01a542fdd10bae8f14d303ab08a]
|
||||
+ cargo fmt added to create_release.sh, [bb29c0ebfafd6a9a036eb317a240954d1405966e]
|
||||
|
||||
+ init commit
|
||||
|
||||
see <a href='https://github.com/mrjackwills/oxker/blob/main/CHANGELOG.md'>CHANGELOG.md</a> for more details
|
||||
|
||||
+10
-7
@@ -1,13 +1,16 @@
|
||||
# <a href='https://github.com/mrjackwills/oxker/releases/tag/v0.0.2'>v0.0.2</a>
|
||||
### 2022-04-29
|
||||
|
||||
### Features
|
||||
+ allow toggling of mouse caputre, to select & copy text with mouse, closes [#2], [aec184ea22b289e91942a4c3e6a415685884bc47]
|
||||
+ show id column, [b10f927481c9e38a48c1d4b94e744ec48e8b6ba6]
|
||||
+ draw_popup, using enum to draw in one of 9 areas, closes [#6], [1017850a6cc91328abc1127bdb117495f5e909d8]
|
||||
+ use a message rx/sx for all docker commands, remove update loop, wait for update message from gui instead, [9b70fdfad7b38361ebee301bdc2545d3f0dfcf9e]
|
||||
+ allow toggling of mouse caputre, to select & copy text with mouse, closes [#2], [aec184ea22b289e91942a4c3e6a415685884bc47](https://github.com/mrjackwills/oxker/commit/aec184ea22b289e91942a4c3e6a415685884bc47),
|
||||
+ show id column, [b10f927481c9e38a48c1d4b94e744ec48e8b6ba6](https://github.com/mrjackwills/oxker/commit/b10f927481c9e38a48c1d4b94e744ec48e8b6ba6),
|
||||
+ draw_popup, using enum to draw in one of 9 areas, closes [#6], [1017850a6cc91328abc1127bdb117495f5e909d8](https://github.com/mrjackwills/oxker/commit/1017850a6cc91328abc1127bdb117495f5e909d8),
|
||||
+ use a message rx/sx for all docker commands, remove update loop, wait for update message from gui instead, [9b70fdfad7b38361ebee301bdc2545d3f0dfcf9e](https://github.com/mrjackwills/oxker/commit/9b70fdfad7b38361ebee301bdc2545d3f0dfcf9e),
|
||||
|
||||
### Fixes
|
||||
+ readme.md typo, [589501f9a4a0bfabdb0654e68cc0c752c529d97a]
|
||||
+ column heading mem > memory, [5e8e6b590b06f01a542fdd10bae8f14d303ab08a]
|
||||
+ cargo fmt added to create_release.sh, [bb29c0ebfafd6a9a036eb317a240954d1405966e]
|
||||
+ readme.md typo, [589501f9a4a0bfabdb0654e68cc0c752c529d97a](https://github.com/mrjackwills/oxker/commit/589501f9a4a0bfabdb0654e68cc0c752c529d97a),
|
||||
+ column heading mem > memory, [5e8e6b590b06f01a542fdd10bae8f14d303ab08a](https://github.com/mrjackwills/oxker/commit/5e8e6b590b06f01a542fdd10bae8f14d303ab08a),
|
||||
+ cargo fmt added to create_release.sh, [bb29c0ebfafd6a9a036eb317a240954d1405966e](https://github.com/mrjackwills/oxker/commit/bb29c0ebfafd6a9a036eb317a240954d1405966e),
|
||||
|
||||
# <a href='https://github.com/mrjackwills/oxker/releases/tag/v0.0.1'>v0.0.1</a>
|
||||
### 2022-04-25
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "oxker"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
edition = "2021"
|
||||
authors = ["Jack Wills <email@mrjackwills.com>"]
|
||||
description = "a simple tui to view & control docker containers"
|
||||
|
||||
+1
-1
@@ -304,7 +304,7 @@ impl AppData {
|
||||
if self.containers.state.selected().is_some() {
|
||||
self.containers.previous();
|
||||
}
|
||||
// docker rm -f $(docker ps -aq) will cause this to crash
|
||||
// docker rm -f $(docker ps -aq) will cause this to crash
|
||||
self.containers.items.remove(index);
|
||||
}
|
||||
}
|
||||
|
||||
+9
-10
@@ -212,8 +212,8 @@ impl DockerData {
|
||||
}
|
||||
|
||||
/// Animate the loading icon
|
||||
async fn loading_spin(&mut self ) -> JoinHandle<()> {
|
||||
let gui_state = Arc::clone(&self.gui_state);
|
||||
async fn loading_spin(&mut self) -> JoinHandle<()> {
|
||||
let gui_state = Arc::clone(&self.gui_state);
|
||||
tokio::spawn(async move {
|
||||
loop {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
|
||||
@@ -228,8 +228,7 @@ impl DockerData {
|
||||
self.gui_state.lock().reset_loading();
|
||||
}
|
||||
|
||||
|
||||
// Initialize docker container data, before any messages are received
|
||||
// Initialize docker container data, before any messages are received
|
||||
async fn initialise_container_data(&mut self) {
|
||||
let loading_spin = self.loading_spin().await;
|
||||
|
||||
@@ -259,7 +258,7 @@ impl DockerData {
|
||||
let app_data = Arc::clone(&self.app_data);
|
||||
match message {
|
||||
DockerMessage::Pause(id) => {
|
||||
let loading_spin =self.loading_spin().await;
|
||||
let loading_spin = self.loading_spin().await;
|
||||
docker.pause_container(&id).await.unwrap_or_else(|_| {
|
||||
app_data
|
||||
.lock()
|
||||
@@ -268,7 +267,7 @@ impl DockerData {
|
||||
self.stop_loading_spin(loading_spin);
|
||||
}
|
||||
DockerMessage::Restart(id) => {
|
||||
let loading_spin =self.loading_spin().await;
|
||||
let loading_spin = self.loading_spin().await;
|
||||
docker
|
||||
.restart_container(&id, None)
|
||||
.await
|
||||
@@ -280,7 +279,7 @@ impl DockerData {
|
||||
self.stop_loading_spin(loading_spin);
|
||||
}
|
||||
DockerMessage::Start(id) => {
|
||||
let loading_spin =self.loading_spin().await;
|
||||
let loading_spin = self.loading_spin().await;
|
||||
docker
|
||||
.start_container(&id, None::<StartContainerOptions<String>>)
|
||||
.await
|
||||
@@ -292,7 +291,7 @@ impl DockerData {
|
||||
self.stop_loading_spin(loading_spin);
|
||||
}
|
||||
DockerMessage::Stop(id) => {
|
||||
let loading_spin =self.loading_spin().await;
|
||||
let loading_spin = self.loading_spin().await;
|
||||
docker.stop_container(&id, None).await.unwrap_or_else(|_| {
|
||||
app_data
|
||||
.lock()
|
||||
@@ -301,14 +300,14 @@ impl DockerData {
|
||||
self.stop_loading_spin(loading_spin);
|
||||
}
|
||||
DockerMessage::Unpause(id) => {
|
||||
let loading_spin =self.loading_spin().await;
|
||||
let loading_spin = self.loading_spin().await;
|
||||
docker.unpause_container(&id).await.unwrap_or_else(|_| {
|
||||
app_data
|
||||
.lock()
|
||||
.set_error(AppError::DockerCommand(DockerControls::Unpause))
|
||||
});
|
||||
self.stop_loading_spin(loading_spin);
|
||||
self.update_everything().await
|
||||
self.update_everything().await
|
||||
}
|
||||
DockerMessage::Update => self.update_everything().await,
|
||||
}
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ pub async fn create_ui(
|
||||
terminal.show_cursor().unwrap();
|
||||
|
||||
if let Err(err) = res {
|
||||
println!("{}", err);
|
||||
println!("{}", err);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user