A lightweight CLI tool that connects to a remote server over SSH and executes PM2 process manager commands.

run cargo fmt

+15 -1
+14
.tangled/workflows/fmt.yml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: ["main"] 4 + 5 + dependencies: 6 + nixpkgs: 7 + - cargo 8 + - rustc 9 + - rustfmt 10 + 11 + steps: 12 + - name: "cargo fmt" 13 + command: | 14 + cargo fmt --all --check
+1 -1
src/pm2.rs
··· 1 1 use std::{io::Read, net::TcpStream, path::Path}; 2 2 3 3 use anyhow::Error; 4 - use base64::{engine::general_purpose, Engine}; 4 + use base64::{Engine, engine::general_purpose}; 5 5 use log::info; 6 6 use owo_colors::OwoColorize; 7 7 use regex::Regex;