From f162d641a71b95f7febab0c04aba7d64182df38b Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 7 Apr 2025 14:17:19 +0100 Subject: feat: support storing, syncing and executing scripts (#2644) * feat: add atuin-scripts crate * initial * define record types * wip * wip * mvp * add show command, make stdin work * rewrite execution to use shebang and script file ALWAYS * rename show -> get, allow fetching script only * fmt * clippy * a bunch of fixes to the edits * update lock * variables * fmt * clippy * pr feedback * fmt --- Cargo.lock | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 07fca372..2488776b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -230,6 +230,7 @@ dependencies = [ "atuin-daemon", "atuin-dotfiles", "atuin-history", + "atuin-scripts", "atuin-server", "atuin-server-postgres", "clap", @@ -254,6 +255,7 @@ dependencies = [ "serde", "serde_json", "sysinfo", + "tempfile", "time", "tiny-bip39", "tokio", @@ -393,6 +395,28 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "atuin-scripts" +version = "18.5.0-beta.2" +dependencies = [ + "atuin-client", + "atuin-common", + "eyre", + "minijinja", + "pretty_assertions", + "rmp", + "serde", + "serde_json", + "sql-builder", + "sqlx", + "tempfile", + "tokio", + "tracing", + "tracing-subscriber", + "typed-builder", + "uuid", +] + [[package]] name = "atuin-server" version = "18.5.0-beta.2" @@ -2522,6 +2546,15 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "minijinja" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98642a6dfca91122779a307b77cd07a4aa951fbe32232aaf5bad9febc66be754" +dependencies = [ + "serde", +] + [[package]] name = "minimal-lexical" version = "0.2.1" -- cgit v1.3.1