From f162d641a71b95f7febab0c04aba7d64182df38b Mon Sep 17 00:00:00 2001
From: Ellie Huxtable <ellie@atuin.sh>
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-scripts/migrations/20250402170430_unique_names.up.sql | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 crates/atuin-scripts/migrations/20250402170430_unique_names.up.sql

(limited to 'crates/atuin-scripts/migrations/20250402170430_unique_names.up.sql')

diff --git a/crates/atuin-scripts/migrations/20250402170430_unique_names.up.sql b/crates/atuin-scripts/migrations/20250402170430_unique_names.up.sql
new file mode 100644
index 00000000..d2cdd02f
--- /dev/null
+++ b/crates/atuin-scripts/migrations/20250402170430_unique_names.up.sql
@@ -0,0 +1,2 @@
+-- Add up migration script here
+create unique index name_uniq_idx ON scripts(name);
\ No newline at end of file
-- 
cgit v1.3.1

