From 2a63be383b6d05e15432fc2de3dbe6e184ad7722 Mon Sep 17 00:00:00 2001 From: ZSchoen Date: Sun, 11 Apr 2021 21:31:53 +0200 Subject: [PATCH] updated README --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 802b934..1cee18f 100644 --- a/README.md +++ b/README.md @@ -37,32 +37,42 @@ default remote build host and user. It can be overridden by the `-r` flag. Example config file: ```toml -remote = "builds@myserver" +[[remote]] +name = "myRemote" # Not needed for a single remote +host = "myUser@myServer" # Could also be a ssh config entry +ssh_port = 42 # defaults to 22 +temp_dir = "~/rust" # Default is "~/remote-builds" +env = "~/.profile" # Default is "/etc/profile" ``` ### Flags and options + ``` USAGE: cargo remote [FLAGS] [OPTIONS] [remote options]... FLAGS: - -c, --copy-back Transfer the target folder back to the local machine --help Prints help information -h, --transfer-hidden Transfer hidden files and directories to the build server + --no-copy-lock don't transfer the Cargo.lock file back to the local machine -V, --version Prints version information OPTIONS: -b, --build-env Set remote environment variables. RUST_BACKTRACE, CC, LIB, etc. [default: RUST_BACKTRACE=1] - -e, --env Environment profile. default_value = /etc/profile [default: /etc/profile] + -c, --copy-back Transfer the target folder or specific file from that folder back to the + local machine + -e, --env Environment profile. default_value = /etc/profile + -H, --remote-host Remote ssh build server with user or the name of the ssh entry --manifest-path Path to the manifest to execute [default: Cargo.toml] - -r, --remote Remote ssh build server + -r, --remote The name of the remote specified in the config -d, --rustup-default Rustup default (stable|beta|nightly) [default: stable] + -p, --remote-ssh-port The ssh port to communicate with the build server + -t, --remote-temp-dir The directory where cargo builds the project ARGS: cargo command that will be executed remotely ... cargo options and flags that will be applied remotely - ``` @@ -78,4 +88,4 @@ It was reported that the `rsync` version shipped with MacOS doesn't support the ```bash brew install rsync ``` -See also [#10](https://github.com/sgeisler/cargo-remote/issues/10). \ No newline at end of file +See also [#10](https://github.com/sgeisler/cargo-remote/issues/10).