Skip to content

Commit

Permalink
remotefs 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 11, 2022
1 parent 3b88bd6 commit 42f6360
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 186 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Changelog

- [Changelog](#changelog)
- [0.2.0](#020)
- [0.1.0](#010)

---

## 0.2.0

Released on ??

- Updated `remotefs` to `0.3.0`
- Updated `ssh2-config` to `0.1.2`

## 0.1.0

Released on 04/01/2022
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ license = "MIT"
name = "remotefs-ssh"
readme = "README.md"
repository = "https://github.com/veeso/remotefs-rs-ssh"
version = "0.1.0"
version = "0.2.0"

[dependencies]
chrono = "^0.4.19"
lazy_static = "^1.4.0"
log = "^0.4.14"
regex = "^1.5.0"
remotefs = "^0.2.0"
remotefs = { git = "https://github.com/veeso/remotefs-rs", branch = "0.3.0" }
#remotefs = "^0.3.0"
ssh2-config = "^0.1.1"
ssh2 = "^0.9.0"

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p align="center">~ Remotefs SSH client ~</p>

<p align="center">Developed by <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Current version: 0.1.0 (04/01/2022)</p>
<p align="center">Current version: 0.2.0 (04/01/2022)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down Expand Up @@ -81,7 +81,7 @@ remotefs-ssh is a client implementation for [remotefs](https://github.com/veeso/
First of all, add `remotefs-ssh` to your project dependencies:

```toml
remotefs-ssh = "^0.1.0"
remotefs-ssh = "^0.2.0"
```

these features are supported:
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
//! First of all you need to add **remotefs** and the client to your project dependencies:
//!
//! ```toml
//! remotefs = "^0.2.0"
//! remotefs-ssh = "^0.1.0"
//! remotefs = "^0.3.0"
//! remotefs-ssh = "^0.2.0"
//! ```
//!
//! these features are supported:
Expand Down
6 changes: 3 additions & 3 deletions src/ssh/commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ fn session_auth_with_password(
// -- shell commands

/// Perform shell command in current SSH session
pub fn perform_shell_cmd<S: AsRef<str>>(session: &mut Session, cmd: S) -> RemoteResult<String> {
pub fn perform_shell_cmd<S: AsRef<str>>(session: &Session, cmd: S) -> RemoteResult<String> {
// Create channel
trace!("Running command: {}", cmd.as_ref());
let mut channel = match session.channel_session() {
Expand Down Expand Up @@ -282,7 +282,7 @@ pub fn perform_shell_cmd<S: AsRef<str>>(session: &mut Session, cmd: S) -> Remote

/// Perform shell command at specified path and return exit code and output
pub fn perform_shell_cmd_at_with_rc<S: AsRef<str>>(
session: &mut Session,
session: &Session,
cmd: S,
p: &Path,
) -> RemoteResult<(u32, String)> {
Expand All @@ -291,7 +291,7 @@ pub fn perform_shell_cmd_at_with_rc<S: AsRef<str>>(

/// Perform shell command and collect return code and output
pub fn perform_shell_cmd_with_rc<S: AsRef<str>>(
session: &mut Session,
session: &Session,
cmd: S,
) -> RemoteResult<(u32, String)> {
let output = perform_shell_cmd(session, format!("{}; echo $?", cmd.as_ref()))?;
Expand Down

0 comments on commit 42f6360

Please sign in to comment.