diff --git a/crates/shrs/Cargo.toml b/crates/shrs/Cargo.toml index 500f95b2..880700b0 100644 --- a/crates/shrs/Cargo.toml +++ b/crates/shrs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs" -version = "0.0.3" +version = "0.0.4" edition = "2021" license = "MIT OR Apache-2.0" authors = ["MrPicklePinosaur"] @@ -31,11 +31,11 @@ anyhow = "1" lazy_static = "1.4" log = "0.4" -shrs_core = { path = "../shrs_core", version = "^0.0.3" } -shrs_line = { path = "../shrs_line", version = "^0.0.3" } -shrs_lang = { path = "../shrs_lang", version = "^0.0.3" } -shrs_job = { path = "../shrs_job", version = "^0.0.3" } -shrs_utils = { path = "../shrs_utils", version = "^0.0.3" } +shrs_core = { path = "../shrs_core", version = "^0.0.4" } +shrs_line = { path = "../shrs_line", version = "^0.0.4" } +shrs_lang = { path = "../shrs_lang", version = "^0.0.4" } +shrs_job = { path = "../shrs_job", version = "^0.0.4" } +shrs_utils = { path = "../shrs_utils", version = "^0.0.4" } serde = { version = "1", features = ["derive"], optional = true } diff --git a/crates/shrs/src/lib.rs b/crates/shrs/src/lib.rs index f8dd1d3a..345e77dd 100644 --- a/crates/shrs/src/lib.rs +++ b/crates/shrs/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/shrs/0.0.3")] +#![doc(html_root_url = "https://docs.rs/shrs/0.0.4")] //! **shrs** is a framework for building and configuring your own shell in rust. //! diff --git a/crates/shrs_core/Cargo.toml b/crates/shrs_core/Cargo.toml index dce1124a..d6d930d1 100644 --- a/crates/shrs_core/Cargo.toml +++ b/crates/shrs_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_core" -version = "0.0.3" +version = "0.0.4" description = "modular library to build your own shell in rust" authors.workspace = true @@ -27,8 +27,8 @@ anymap = "1.0.0-beta.2" multimap = "0.9" skim = "0.10.4" -shrs_job = { path = "../shrs_job", version = "^0.0.3" } -shrs_utils = { path = "../shrs_utils", version = "^0.0.3" } +shrs_job = { path = "../shrs_job", version = "^0.0.4" } +shrs_utils = { path = "../shrs_utils", version = "^0.0.4" } pino_deref = "0.1" diff --git a/crates/shrs_job/Cargo.toml b/crates/shrs_job/Cargo.toml index b084b98a..cc94b24a 100644 --- a/crates/shrs_job/Cargo.toml +++ b/crates/shrs_job/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_job" -version = "0.0.3" +version = "0.0.4" description = "utilities for managing jobs and processes" authors.workspace = true diff --git a/crates/shrs_lang/Cargo.toml b/crates/shrs_lang/Cargo.toml index 1ddb2653..efdc3c85 100644 --- a/crates/shrs_lang/Cargo.toml +++ b/crates/shrs_lang/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_lang" -version = "0.0.3" +version = "0.0.4" description = "parser and lexer for shrs posix shell" build = "build.rs" @@ -13,8 +13,8 @@ license.workspace = true repository.workspace = true [dependencies] -shrs_core = { path = "../shrs_core", version = "^0.0.3" } -shrs_job = { path = "../shrs_job", version = "^0.0.3" } +shrs_core = { path = "../shrs_core", version = "^0.0.4" } +shrs_job = { path = "../shrs_job", version = "^0.0.4" } lalrpop-util = { version = "0.19.8", features = ["lexer"] } regex = "1" nix = { version = "0.26", default-features = false, features = ["fs", "term", "process", "signal"]} diff --git a/crates/shrs_line/Cargo.toml b/crates/shrs_line/Cargo.toml index 68addd27..e811ba5d 100644 --- a/crates/shrs_line/Cargo.toml +++ b/crates/shrs_line/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_line" -version = "0.0.3" +version = "0.0.4" description = "readline implementation" authors.workspace = true @@ -22,8 +22,8 @@ tempfile = "3.9" anyhow = "1" thiserror = "1" -shrs_core = { path = "../shrs_core", version = "^0.0.3" } -shrs_vi = { path = "../shrs_vi", version = "^0.0.3" } -shrs_utils = { path = "../shrs_utils", version = "^0.0.3" } -shrs_lang = {path = "../shrs_lang", version = "^0.0.3" } +shrs_core = { path = "../shrs_core", version = "^0.0.4" } +shrs_vi = { path = "../shrs_vi", version = "^0.0.4" } +shrs_utils = { path = "../shrs_utils", version = "^0.0.4" } +shrs_lang = {path = "../shrs_lang", version = "^0.0.4" } # shrs_core = { path = "../shrs_utils" } diff --git a/crates/shrs_utils/Cargo.toml b/crates/shrs_utils/Cargo.toml index a1113790..69815ee5 100644 --- a/crates/shrs_utils/Cargo.toml +++ b/crates/shrs_utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_utils" -version = "0.0.3" +version = "0.0.4" description = "utilities for shrs" authors.workspace = true diff --git a/crates/shrs_vi/Cargo.toml b/crates/shrs_vi/Cargo.toml index 31af4a78..273db7fa 100644 --- a/crates/shrs_vi/Cargo.toml +++ b/crates/shrs_vi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_vi" -version = "0.0.3" +version = "0.0.4" description = "parser for vi like commands" build = "build.rs" diff --git a/dev/scripts/publish b/dev/scripts/publish index c790d28f..84e9c0f2 100755 --- a/dev/scripts/publish +++ b/dev/scripts/publish @@ -20,13 +20,14 @@ plugins=( shrs_file_logger shrs_mux shrs_output_capture + shrs_rhai shrs_run_context ) -# for crate in "${crates[@]}"; do -# echo "Publishing $crate" -# cargo publish -p $crate -# done +for crate in "${crates[@]}"; do + echo "Publishing $crate" + cargo publish -p $crate +done for plugin in "${plugins[@]}"; do echo "Publishing $plugin" diff --git a/docs/content/docs/getting-started/quick-start.md b/docs/content/docs/getting-started/quick-start.md index 005a892e..1b095240 100644 --- a/docs/content/docs/getting-started/quick-start.md +++ b/docs/content/docs/getting-started/quick-start.md @@ -36,7 +36,7 @@ cd Next, add shrs as a dependency in your `Cargo.toml`. shrs is still currently in pre-release, so there will be frequent updates. You can use the most recently published version with: ```toml -shrs = { version = "0.0.3" } +shrs = { version = "0.0.4" } ``` Otherwise, if you wish to be on the bleeding edge, you can depend directly on the master branch (beware that there may be unexpected bugs and breaking API changes on master): diff --git a/plugins/shrs_analytics/Cargo.toml b/plugins/shrs_analytics/Cargo.toml index 47c01e5f..4c09696a 100644 --- a/plugins/shrs_analytics/Cargo.toml +++ b/plugins/shrs_analytics/Cargo.toml @@ -12,4 +12,4 @@ readme = "README.md" repository = "https://github.com/MrPicklePinosaur/shrs" [dependencies] -shrs = { path = "../../crates/shrs", version = "0.0.3" } +shrs = { path = "../../crates/shrs", version = "0.0.4" } diff --git a/plugins/shrs_autocd/Cargo.toml b/plugins/shrs_autocd/Cargo.toml index d3ffcaad..911e7533 100644 --- a/plugins/shrs_autocd/Cargo.toml +++ b/plugins/shrs_autocd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_autocd" -version = "0.0.3" +version = "0.0.4" description = "implement autocd feature present in many shells" readme = "README.md" @@ -13,4 +13,4 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } diff --git a/plugins/shrs_autocd/README.md b/plugins/shrs_autocd/README.md index f79fdb40..c97163dd 100644 --- a/plugins/shrs_autocd/README.md +++ b/plugins/shrs_autocd/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_autocd = { version = "0.0.3" } +shrs_autocd = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_cd_stack/Cargo.toml b/plugins/shrs_cd_stack/Cargo.toml index acfdd039..405924b5 100644 --- a/plugins/shrs_cd_stack/Cargo.toml +++ b/plugins/shrs_cd_stack/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_cd_stack" -version = "0.0.3" +version = "0.0.4" description = "maintain stack of past working directories" readme = "README.md" @@ -13,4 +13,4 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } diff --git a/plugins/shrs_cd_stack/README.md b/plugins/shrs_cd_stack/README.md index 72c76af7..09c4722e 100644 --- a/plugins/shrs_cd_stack/README.md +++ b/plugins/shrs_cd_stack/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_cd_stack = { version = "0.0.3" } +shrs_cd_stack = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_cd_tools/Cargo.toml b/plugins/shrs_cd_tools/Cargo.toml index 08864076..9e1a8e44 100644 --- a/plugins/shrs_cd_tools/Cargo.toml +++ b/plugins/shrs_cd_tools/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_cd_tools" -version = "0.0.3" +version = "0.0.4" description = "Variety of utilities for running commands conditionally on directory change" authors.workspace = true @@ -12,7 +12,7 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } derive_builder = "0.12" anymap = "0.12" diff --git a/plugins/shrs_command_timer/Cargo.toml b/plugins/shrs_command_timer/Cargo.toml index cf80f925..b7ff356c 100644 --- a/plugins/shrs_command_timer/Cargo.toml +++ b/plugins/shrs_command_timer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_command_timer" -version = "0.0.3" +version = "0.0.4" description = "shrs plugin to time how long the previous command took to run" readme = "README.md" @@ -13,4 +13,4 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } diff --git a/plugins/shrs_command_timer/README.md b/plugins/shrs_command_timer/README.md index b2e339bd..343138dc 100644 --- a/plugins/shrs_command_timer/README.md +++ b/plugins/shrs_command_timer/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_command_timer = { version = "0.0.3" } +shrs_command_timer = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_completion/Cargo.toml b/plugins/shrs_completion/Cargo.toml index 8b3e42e5..dcf1a5ae 100644 --- a/plugins/shrs_completion/Cargo.toml +++ b/plugins/shrs_completion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_completion" -version = "0.0.3" +version = "0.0.4" description = "More completions for shrs" authors.workspace = true @@ -12,7 +12,7 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } ssh2-config = { version = "0.2.3" } dirs = { version = "5.0" } diff --git a/plugins/shrs_completion/README.md b/plugins/shrs_completion/README.md index eac081fe..8ad6855d 100644 --- a/plugins/shrs_completion/README.md +++ b/plugins/shrs_completion/README.md @@ -5,6 +5,39 @@ more completions for shrs +[![crates.io](https://img.shields.io/crates/v/shrs_command_timer.svg)](https://crates.io/crates/shrs_completion) [![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](#) + +This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). + +## Using this plugin + +First add this plugin to your dependencies +```toml +shrs_completion = { version = "0.0.4" } +``` + +Then include this plugin when initializing shrs +```rust +use shrs::prelude::*; +use shrs_completion::completions::*; + +fn main() { + let mut mycompleter = DefaultCompleter::default(); + ssh_completion(&mut mycompleter); + + let myline = LineBuilder::default() + .with_completer(mycompleter) + .build() + .unwrap(); + + let myshell = ShellBuilder::default() + .with_readline(myline) + .build() + .unwrap(); + + myshell.run().unwrap(); +} +``` diff --git a/plugins/shrs_derive_completion/Cargo.toml b/plugins/shrs_derive_completion/Cargo.toml index dab91bd4..f0f9b245 100644 --- a/plugins/shrs_derive_completion/Cargo.toml +++ b/plugins/shrs_derive_completion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_derive_completion" -version = "0.0.3" +version = "0.0.4" description = "Specify shell completions from derive macro" authors.workspace = true @@ -19,7 +19,7 @@ name = "tests" path = "tests/test.rs" [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } derive_builder = "0.12" diff --git a/plugins/shrs_file_logger/Cargo.toml b/plugins/shrs_file_logger/Cargo.toml index 6c7a3327..ccaf3e76 100644 --- a/plugins/shrs_file_logger/Cargo.toml +++ b/plugins/shrs_file_logger/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_file_logger" -version = "0.0.3" +version = "0.0.4" description = "" readme = "README.md" @@ -13,7 +13,7 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } log4rs = { version = "1.2" } log = { version = "0.4" } diff --git a/plugins/shrs_file_logger/README.md b/plugins/shrs_file_logger/README.md index bd99bdcf..fa1efb67 100644 --- a/plugins/shrs_file_logger/README.md +++ b/plugins/shrs_file_logger/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_file_logger = { version = "0.0.3" } +shrs_file_logger = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_mux/Cargo.toml b/plugins/shrs_mux/Cargo.toml index 40502d78..80104622 100644 --- a/plugins/shrs_mux/Cargo.toml +++ b/plugins/shrs_mux/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_mux" -version = "0.0.3" +version = "0.0.4" description = "shell language multiplexer" readme = "README.md" @@ -13,7 +13,7 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } clap = { version = "4.1", features = ["derive"] } tokio = { version = "1.35", features = ["full"] } openssh = { version = "0.10.3" } diff --git a/plugins/shrs_mux/README.md b/plugins/shrs_mux/README.md index 7c3c51e4..8e421f3a 100644 --- a/plugins/shrs_mux/README.md +++ b/plugins/shrs_mux/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_mux = { version = "0.0.3" } +shrs_mux = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_output_capture/Cargo.toml b/plugins/shrs_output_capture/Cargo.toml index 987a809e..7ed4ef6d 100644 --- a/plugins/shrs_output_capture/Cargo.toml +++ b/plugins/shrs_output_capture/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_output_capture" -version = "0.0.3" +version = "0.0.4" description = "Capture the previous stdout and stderr output" readme = "README.md" @@ -13,4 +13,4 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } diff --git a/plugins/shrs_output_capture/README.md b/plugins/shrs_output_capture/README.md index 3997a0e2..6d9f828e 100644 --- a/plugins/shrs_output_capture/README.md +++ b/plugins/shrs_output_capture/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_output_capture = { version = "0.0.3" } +shrs_output_capture = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_rhai/Cargo.toml b/plugins/shrs_rhai/Cargo.toml index 116427a4..ff351a9b 100644 --- a/plugins/shrs_rhai/Cargo.toml +++ b/plugins/shrs_rhai/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_rhai" -version = "0.0.3" +version = "0.0.4" description = "run rhai scripts with shrs context" readme = "README.md" @@ -13,6 +13,6 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3" } +shrs = { path = "../../crates/shrs", version = "^0.0.4" } rhai = { version = "1.16" } dirs = { version = "5" } diff --git a/plugins/shrs_rhai/README.md b/plugins/shrs_rhai/README.md index 94757e7b..66a061ed 100644 --- a/plugins/shrs_rhai/README.md +++ b/plugins/shrs_rhai/README.md @@ -16,7 +16,7 @@ This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs). First add this plugin to your dependencies ```toml -shrs_rhai = { version = "0.0.3" } +shrs_rhai = { version = "0.0.4" } ``` Then include this plugin when initializing shrs diff --git a/plugins/shrs_run_context/Cargo.toml b/plugins/shrs_run_context/Cargo.toml index f491fb9d..7a3b805f 100644 --- a/plugins/shrs_run_context/Cargo.toml +++ b/plugins/shrs_run_context/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_run_context" -version = "0.0.3" +version = "0.0.4" description = "Save and load run context" authors.workspace = true @@ -12,7 +12,7 @@ license.workspace = true repository.workspace = true [dependencies] -shrs = { path = "../../crates/shrs", version = "^0.0.3", features = ["serde"] } +shrs = { path = "../../crates/shrs", version = "^0.0.4", features = ["serde"] } clap = { version = "4.1", features = ["derive"] } ron = { version = "0.8" } diff --git a/shrs_example/Cargo.toml b/shrs_example/Cargo.toml index 6c375a36..46280b6e 100644 --- a/shrs_example/Cargo.toml +++ b/shrs_example/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shrs_example" -version = "0.0.3" +version = "0.0.4" edition = "2021" license = "MIT OR Apache-2.0" authors = ["MrPicklePinosaur"] @@ -9,14 +9,14 @@ repository = "https://github.com/MrPicklePinosaur/shrs" build = "build.rs" [dependencies] -shrs = { path = "../crates/shrs", version = "^0.0.3" } -shrs_output_capture = { path = "../plugins/shrs_output_capture", version = "0.0.3" } -shrs_cd_tools = { path = "../plugins/shrs_cd_tools", version = "0.0.3" } -shrs_command_timer = { path = "../plugins/shrs_command_timer", version = "0.0.3" } -shrs_run_context = { path = "../plugins/shrs_run_context", version = "0.0.3" } -shrs_mux = { path = "../plugins/shrs_mux", version = "0.0.3" } -shrs_cd_stack = { path = "../plugins/shrs_cd_stack", version = "0.0.3" } -shrs_file_logger = { path = "../plugins/shrs_file_logger", version = "0.0.3" } +shrs = { path = "../crates/shrs", version = "^0.0.4" } +shrs_output_capture = { path = "../plugins/shrs_output_capture", version = "0.0.4" } +shrs_cd_tools = { path = "../plugins/shrs_cd_tools", version = "0.0.4" } +shrs_command_timer = { path = "../plugins/shrs_command_timer", version = "0.0.4" } +shrs_run_context = { path = "../plugins/shrs_run_context", version = "0.0.4" } +shrs_mux = { path = "../plugins/shrs_mux", version = "0.0.4" } +shrs_cd_stack = { path = "../plugins/shrs_cd_stack", version = "0.0.4" } +shrs_file_logger = { path = "../plugins/shrs_file_logger", version = "0.0.4" } dirs = "5" anyhow = "1"