pump

⛽️ Serial port pump.

Installation

bash $ cargo install pump

Usage

bash $ pump --help

``` USAGE: pump [SUBCOMMAND]

FLAGS: -h, --help Prints help information -V, --version Prints version information

SUBCOMMANDS: download Download from serial port [aliases: down] help Prints this message or the help of the given subcommand(s) list List available ports [aliases: ls] upload Upload to serial port [aliases: up] ```

List serial ports

bash $ pump list --help

``` List available ports

USAGE: pump list [FLAGS]

FLAGS: -i, --info Prints detailed ports information -h, --help Prints help information -V, --version Prints version information ```

Upload to serial port

bash $ pump upload --help

``` Upload to serial port

USAGE: pump upload [OPTIONS] [BAUDRATE]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -d, --data-bits Sets the data bits [default: 8] [possible values: 5, 6, 7, 8] -f, --flow Sets the flow control [env: PUMP_FLOW=] [default: off] [possible values: off, soft] -i, --input Sets the input file [default: stdin] -l, --limit Sets the data limit in bytes -p, --parity Sets the parity [default: none] [possible values: none, odd, even] -s, --stop-bits Sets the stop bits [default: 1] [possible values: 1, 2] -t, --timeout Sets the timeout in milliseconds [default: 0]

ARGS: Sets thes port name [env: PUMPPORT=] Sets the baudrate [env: PUMPBAUDRATE=] [default: 115200] ```

Download from serial port

bash $ pump download --help

``` Download from serial port

USAGE: pump download [OPTIONS] [BAUDRATE]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -d, --data-bits Sets the data bits [default: 8] [possible values: 5, 6, 7, 8] -f, --flow Sets the flow control [env: PUMP_FLOW=] [default: off] [possible values: off, soft] -o, --output Sets the output file [default: stdout] -l, --limit Sets the data limit in bytes -p, --parity Sets the parity [default: none] [possible values: none, odd, even] -s, --stop-bits Sets the stop bits [default: 1] [possible values: 1, 2] -t, --timeout Sets the timeout in milliseconds [default: 0]

ARGS: Sets thes port name [env: PUMPPORT=] Sets the baudrate [env: PUMPBAUDRATE=] [default: 115200] ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.