diff --git a/Cargo.lock b/Cargo.lock index b4ccd61..7f1135f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,7 +270,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.38" +version = "0.1.39" dependencies = [ "anyhow", "chrono", @@ -291,7 +291,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.38" +version = "0.1.39" dependencies = [ "anyhow", "async-trait", @@ -314,7 +314,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.38" +version = "0.1.39" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index d1f9dea..821a477 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.39" +version = "0.1.40" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 250e1bb..2df0b01 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.39" +version = "0.1.40" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 21c0dc8..53e4e0b 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -246,20 +246,12 @@ impl TuiApp { if let Some(hostname) = self.current_host.clone() { // Create command that shows CM Dashboard logo and then rebuilds let logo_and_rebuild = format!( - "echo ''; \ - echo -e '\\033[1;32m _____ __ __ _____ _ _ _ \\033[0m'; \ - echo -e '\\033[1;32m / ____| \\/ | | __ \\ | | | | | |\\033[0m'; \ - echo -e '\\033[1;32m| | | \\ / | | | | | __ _ ___| |__ | |__ ___ __ _ _ __ __| |\\033[0m'; \ - echo -e '\\033[1;32m| | | |\\/| | | | | |/ _` / __| \\'_ \\| \\'_ \\ / _ \\ / _` | \\'__/ _` |\\033[0m'; \ - echo -e '\\033[1;32m| |____| | | | | |__| | (_| \\__ \\ | | | |_) | (_) | (_| | | | (_| |\\033[0m'; \ - echo -e '\\033[1;32m \\_____|_| |_| |_____/ \\__,_|___/_| |_|_.__/ \\___/ \\__,_|_| \\__,_|\\033[0m'; \ - echo ''; \ - echo -e '\\033[1;33m NixOS System Rebuild\\033[0m'; \ - echo -e '\\033[1;32m Target: {}\\033[0m'; \ - echo ''; \ - echo -e '\\033[1;90m────────────────────────────────────────────────────────────────────────────────\\033[0m'; \ - echo ''; \ - ssh -tt {}@{} 'bash -ic {}'", + r"cat << 'EOF' +NixOS System Rebuild +Target: {} + +EOF +ssh -tt {}@{} 'bash -ic {}'", hostname, self.config.ssh.rebuild_user, hostname, diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 6a131f0..6927592 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.39" +version = "0.1.40" edition = "2021" [dependencies]