diff options
author | Anthony Wang | 2023-12-29 16:16:25 -0600 |
---|---|---|
committer | Anthony Wang | 2023-12-29 16:16:25 -0600 |
commit | 97722764e82b3748a6ec60574fd3d3752048c101 (patch) | |
tree | 61b6fe63c227693ee407d146f683d375e3df6414 /sd-add.fish | |
parent | 63f04f004110ecabfb5ec32408e77055a62a9122 (diff) |
Add command for creating table in README, add fish helper scripts
Diffstat (limited to 'sd-add.fish')
-rw-r--r-- | sd-add.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sd-add.fish b/sd-add.fish new file mode 100644 index 0000000..1b580a6 --- /dev/null +++ b/sd-add.fish @@ -0,0 +1,5 @@ +function sd-add + set cardfile cards + set idx (math 1+(sqlite3 "$cardfile" "select max(idx) from cards")) + sqlite3 "$cardfile" "insert into cards values ($idx, 256, '$argv[1]', '$argv[2]')" +end |