tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
pm22
2
fork
atom
A lightweight CLI tool that connects to a remote server over SSH and executes PM2 process manager commands.
2
fork
atom
overview
issues
pulls
pipelines
run cargo fmt
tsiry-sandratraina.com
7 months ago
3b64ea03
b1df8dd4
1/1
fmt.yml
success
11s
+15
-1
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
fmt.yml
src
pm2.rs
+14
.tangled/workflows/fmt.yml
···
1
1
+
when:
2
2
+
- event: ["push", "pull_request"]
3
3
+
branch: ["main"]
4
4
+
5
5
+
dependencies:
6
6
+
nixpkgs:
7
7
+
- cargo
8
8
+
- rustc
9
9
+
- rustfmt
10
10
+
11
11
+
steps:
12
12
+
- name: "cargo fmt"
13
13
+
command: |
14
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
4
-
use base64::{engine::general_purpose, Engine};
4
4
+
use base64::{Engine, engine::general_purpose};
5
5
use log::info;
6
6
use owo_colors::OwoColorize;
7
7
use regex::Regex;