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 --- crates/atuin-client/src/settings/scripts.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 crates/atuin-client/src/settings/scripts.rs (limited to 'crates/atuin-client/src/settings') diff --git a/crates/atuin-client/src/settings/scripts.rs b/crates/atuin-client/src/settings/scripts.rs new file mode 100644 index 00000000..e9d66c93 --- /dev/null +++ b/crates/atuin-client/src/settings/scripts.rs @@ -0,0 +1,17 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct Settings { + pub database_path: String, +} + +impl Default for Settings { + fn default() -> Self { + let dir = atuin_common::utils::data_dir(); + let path = dir.join("scripts.db"); + + Self { + database_path: path.to_string_lossy().to_string(), + } + } +} -- cgit v1.3.1