Skip to content

Commit

Permalink
Bump to 0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed May 27, 2022
1 parent 5c2ade9 commit 353e581
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Removed

## [0.16.2] - 2022-05-27
### Changed
- The following fields now default to false when missing in JSON request body
- For `DirRead`: `absolute`, `canonicalize`, `include_root`
- For `DirCreate`: `all`
- For `Remove`: `force`
- For `Watch`: `recursive`
- For `Metadata`: `canonicalize` and `resolve_file_type`
- For `ProcSpawn`: `args` (empty list), `persist`, and `pty` (nothing)

## [0.16.1] - 2022-05-13
### Changed
- Lock in to Rust openssl 0.10.38 as it is the last version that supports using
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "distant"
description = "Operate on a remote computer through file and process manipulation"
categories = ["command-line-utilities"]
keywords = ["cli"]
version = "0.16.1"
version = "0.16.2"
authors = ["Chip Senkbeil <[email protected]>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
Expand All @@ -26,7 +26,7 @@ ssh2 = ["distant-ssh2/ssh2"]

[dependencies]
derive_more = { version = "0.99.16", default-features = false, features = ["display", "from", "error", "is_variant"] }
distant-core = { version = "=0.16.1", path = "distant-core", features = ["structopt"] }
distant-core = { version = "=0.16.2", path = "distant-core", features = ["structopt"] }
flexi_logger = "0.18.0"
indoc = "1.0.3"
log = "0.4.14"
Expand All @@ -43,7 +43,7 @@ termwiz = "0.15.0"
whoami = "1.1.2"

# Optional native SSH functionality
distant-ssh2 = { version = "=0.16.1", path = "distant-ssh2", default-features = false, features = ["serde"], optional = true }
distant-ssh2 = { version = "=0.16.2", path = "distant-ssh2", default-features = false, features = ["serde"], optional = true }

[target.'cfg(unix)'.dependencies]
fork = "0.1.18"
Expand Down
2 changes: 1 addition & 1 deletion distant-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "distant-core"
description = "Core library for distant, enabling operation on a remote computer through file and process manipulation"
categories = ["network-programming"]
keywords = ["api", "async"]
version = "0.16.1"
version = "0.16.2"
authors = ["Chip Senkbeil <[email protected]>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
Expand Down
15 changes: 13 additions & 2 deletions distant-core/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ pub enum RequestData {
depth: usize,

/// Whether or not to return absolute or relative paths
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
absolute: bool,

Expand All @@ -140,6 +141,7 @@ pub enum RequestData {
///
/// Note that the flag absolute must be true to have absolute paths
/// returned, even if canonicalize is flagged as true
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
canonicalize: bool,

Expand All @@ -148,6 +150,7 @@ pub enum RequestData {
///
/// If included, the root directory will also be a canonicalized,
/// absolute path and will not follow any of the other flags
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(long))]
include_root: bool,
},
Expand All @@ -159,6 +162,7 @@ pub enum RequestData {
path: PathBuf,

/// Whether or not to create all parent directories
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
all: bool,
},
Expand All @@ -171,6 +175,7 @@ pub enum RequestData {

/// Whether or not to remove all contents within directory if is a directory.
/// Does nothing different for files
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
force: bool,
},
Expand Down Expand Up @@ -202,23 +207,24 @@ pub enum RequestData {

/// If true, will recursively watch for changes within directories, othewise
/// will only watch for changes immediately within directories
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
recursive: bool,

/// Filter to only report back specified changes
#[serde(default)]
#[cfg_attr(
feature = "structopt",
structopt(short, long, possible_values = &ChangeKind::VARIANTS)
)]
#[serde(default)]
only: Vec<ChangeKind>,

/// Filter to report back changes except these specified changes
#[serde(default)]
#[cfg_attr(
feature = "structopt",
structopt(short, long, possible_values = &ChangeKind::VARIANTS)
)]
#[serde(default)]
except: Vec<ChangeKind>,
},

Expand All @@ -242,10 +248,12 @@ pub enum RequestData {
/// Whether or not to include a canonicalized version of the path, meaning
/// returning the canonical, absolute form of a path with all
/// intermediate components normalized and symbolic links resolved
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(short, long))]
canonicalize: bool,

/// Whether or not to follow symlinks to determine absolute file type (dir/file)
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(long))]
resolve_file_type: bool,
},
Expand All @@ -257,14 +265,17 @@ pub enum RequestData {
cmd: String,

/// Arguments for the command
#[serde(default)]
args: Vec<String>,

/// Whether or not the process should be persistent, meaning that the process will not be
/// killed when the associated client disconnects
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(long))]
persist: bool,

/// If provided, will spawn process in a pty, otherwise spawns directly
#[serde(default)]
#[cfg_attr(feature = "structopt", structopt(long))]
pty: Option<PtySize>,
},
Expand Down
4 changes: 2 additions & 2 deletions distant-ssh2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "distant-ssh2"
description = "Library to enable native ssh-2 protocol for use with distant sessions"
categories = ["network-programming"]
version = "0.16.1"
version = "0.16.2"
authors = ["Chip Senkbeil <[email protected]>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
Expand All @@ -17,7 +17,7 @@ ssh2 = ["wezterm-ssh/ssh2", "wezterm-ssh/vendored-openssl-ssh2"]

[dependencies]
async-compat = "0.2.1"
distant-core = { version = "=0.16.1", path = "../distant-core" }
distant-core = { version = "=0.16.2", path = "../distant-core" }
futures = "0.3.16"
log = "0.4.14"
rand = { version = "0.8.4", features = ["getrandom"] }
Expand Down

0 comments on commit 353e581

Please sign in to comment.