Skip to content

Commit

Permalink
improve agent doc
Browse files Browse the repository at this point in the history
  • Loading branch information
timzaak committed Jul 1, 2024
1 parent 0b63145 commit 9bc447a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

# 向 mproxy 分发指令
./mpublish -- ls -ls
./mpublish -- bash -c \"ls \| grep mproxy.yml\"
# or run with config
./mpublish --config=where/path/mpublish.conf -- ls -ls

Expand Down
5 changes: 5 additions & 0 deletions agent/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ mod test {
println!("{v:?}");
}
#[test]
fn test_bash_commands(){
let v = shellish_parse::parse("bash -c \"ls |grep a\"", false).unwrap();
println!("{v:?}");
}
#[test]
fn run_multiple_commands() {
let mut cmd = Command::new("bash");
cmd.arg("-c");
Expand Down

0 comments on commit 9bc447a

Please sign in to comment.