diff --git a/Cargo.lock b/Cargo.lock index 7e61ff6..eea4efc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -353,6 +353,15 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "core-foundation-sys" version = "0.8.6" @@ -623,9 +632,9 @@ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" [[package]] name = "interprocess" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13f2533e1f1a70bec71ea7a85d1c0a4dab141c314035ce76e51a19a2f48be708" +checksum = "67bafc2f5dbdad79a6d925649758d5472647b416028099f0b829d1b67fdd47d3" dependencies = [ "doctest-file", "libc", @@ -870,11 +879,24 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "nu-derive-value" +version = "0.95.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9724b3754a25b2f8a2a7f1530e0a162fa57a3cadd0b5c3b52f75edcdb2070c09" +dependencies = [ + "convert_case", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.59", +] + [[package]] name = "nu-engine" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22fb3bd460654e011259e834050794f9123a51493663e09aefe5dfb937b408a8" +checksum = "f5ed7cd7d34dd3e58292eaaa658f4b7342da99e979da54babd50c08d5d6d59e5" dependencies = [ "nu-glob", "nu-path", @@ -884,15 +906,15 @@ dependencies = [ [[package]] name = "nu-glob" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bb69b3a1152ec28a2bb35264e93a66b5028f1137e52cf6a29026742b9a46cc3" +checksum = "acd2879444c53bbfb51a2ab060ae1257fe2c8446e6b2cd8a63c88a4d6a728a7a" [[package]] name = "nu-parser" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2b5fec9553d2b2da329e4a7dd096684eed761d14915defe0d324ab9c6d7c0d9" +checksum = "6543d2a61e1899b5812264ac6a3a7a54197bb1d9cdf8532af41e9800c4a66d59" dependencies = [ "bytesize", "chrono", @@ -906,9 +928,9 @@ dependencies = [ [[package]] name = "nu-path" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bdfba442db75e61616d8a017a392301c3619c1dbbe92ee291b4ac0072c3e56d" +checksum = "6633f681c4c92d86198d91f3a4b212e64a33901ca492dd5529631c8ac7dd6ca9" dependencies = [ "dirs-next", "omnipath", @@ -917,9 +939,9 @@ dependencies = [ [[package]] name = "nu-plugin" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac87b13cca366fcf36db31e5e2c66b6ea5a791d161314f4b34f9166604718471" +checksum = "b7844c84c9319c0dc831bc6d595990dee2ba66aab9d0a0d4d64ab414e6520b0f" dependencies = [ "log", "nix", @@ -932,9 +954,9 @@ dependencies = [ [[package]] name = "nu-plugin-core" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be7eb2ad0fbb7d5006211fafa25c421082ff3b098e4395e173386790a7ea1ab" +checksum = "b400723e072a53a1ddff07f530758b17df97cb8bf632414c547a1ad2c1225ddb" dependencies = [ "interprocess", "log", @@ -948,9 +970,9 @@ dependencies = [ [[package]] name = "nu-plugin-protocol" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f0da1070ae49e5d203163457e527f7f84380f6a0cfda5d2878181e147692b5" +checksum = "257069f3d77a7fbe47685deb3a53d2de4a4744f6869a7f977286dbadd8bdb2aa" dependencies = [ "bincode", "nu-protocol", @@ -962,19 +984,21 @@ dependencies = [ [[package]] name = "nu-protocol" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36e2198a52b43e5f0208bec96de68a72a41f076b2b5b1e5e03b6725441060799" +checksum = "f83d22636a014d5db9f894db2e53fac656b686a35f1002ecc1b8b46b47474874" dependencies = [ "brotli", "byte-unit", "chrono", "chrono-humanize", + "convert_case", "fancy-regex", "indexmap", "lru", "miette", "nix", + "nu-derive-value", "nu-path", "nu-system", "nu-utils", @@ -988,9 +1012,9 @@ dependencies = [ [[package]] name = "nu-system" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b103a4c5abcf6ce9c0e395ed9959486cfd6691f21f8cf128ffd2b35130bd0bb5" +checksum = "8c5e86b4e9ea84b4b12778a159adbbef5f4346213dcc4e9e58f3c40f5c9865af" dependencies = [ "chrono", "itertools", @@ -1008,9 +1032,9 @@ dependencies = [ [[package]] name = "nu-utils" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c572ba7a4ee47481f0b011114fbeb25b6171bc194d689c034b410db61d3c6d2c" +checksum = "bc747ba17d4762480a7569df44b49fb7f465b12b98aaa2a18aab2eeb585df79c" dependencies = [ "crossterm_winapi", "log", @@ -1025,7 +1049,7 @@ dependencies = [ [[package]] name = "nu_plugin_explore" -version = "0.94.0" +version = "0.95.0" dependencies = [ "anyhow", "crossterm", @@ -1057,9 +1081,9 @@ dependencies = [ [[package]] name = "nuon" -version = "0.94.1" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c68bf0a14c78685389fab97512a811851ee2c4dbc543e6bc50f68c222d42000" +checksum = "729825a95c512a895e18bf11f72e7480851a29a939904468e4d2bc63b93b62d4" dependencies = [ "fancy-regex", "nu-engine", @@ -1082,9 +1106,9 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "os_pipe" -version = "1.1.5" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57119c3b893986491ec9aa85056780d3a0f3cf4da7cc09dd3650dbd6c6738fb9" +checksum = "29d73ba8daf8fac13b0501d1abeddcfe21ba7401ada61a819144b6c2a4f32209" dependencies = [ "libc", "windows-sys 0.52.0", diff --git a/Cargo.toml b/Cargo.toml index 8c33337..0b280a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,9 @@ name = "nu_plugin_explore" [dependencies] anyhow = "1.0.73" crossterm = "0.27.0" -nuon = "0.94.0" -nu-plugin = "0.94.0" -nu-protocol = "0.94.0" +nuon = "0.95.0" +nu-plugin = "0.95.0" +nu-protocol = "0.95.0" ratatui = "0.26.1" url = "2.4.0" @@ -20,4 +20,4 @@ bench = false [package] edition = "2021" name = "nu_plugin_explore" -version = "0.94.0" +version = "0.95.0" diff --git a/src/main.rs b/src/main.rs index b1d4aa7..dea08b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,10 @@ impl Plugin for ExplorePlugin { fn commands(&self) -> Vec>> { vec![Box::new(Explore)] } + + fn version(&self) -> String { + env!("CARGO_PKG_VERSION").into() + } } struct Explore;