-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add acap-ssh-utils bin and lib crate
Benefits of having this include * documents how to quickly deploy and test incremental changes. * makes it easier for other tools to do so by taking care of the many details while presenting a friendly interface. This will come in handy for implementing analogs of `cargo run` and `cargo test`, both of which will cross-compile a binary and execute it on target. Exclude the new crate when checking other targets because supporting other targets is not a priority, especially not for this crate that will depend on `sshpass`, `ssh`, and `scp` for the foreseeable future which makes it less portable. Change the behavior of `make run` to always set the `RUST_LOG*` environment variables to decouple the log level of the tool that runs on host from the log level of the app that is running on target. Always require a password because it is not possible to set up public key authentication for users other than root, so we have to support password authentication and supporting only one method makes both the implementation and the user experience more straightforward.
- Loading branch information
1 parent
e6e76d4
commit b18c252
Showing
6 changed files
with
431 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "acap-ssh-utils" | ||
version = "0.0.0" | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
anyhow = { version = "1.0.79" } | ||
clap = { version = "4.5.1", features = ["derive"] } | ||
env_logger = { version = "0.11.1" } | ||
log = { version = "0.4.21" } | ||
url = { version = "2.5.0" } |
Oops, something went wrong.