Skip to content

Commit

Permalink
trying to add dir to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
khan5ula committed Oct 11, 2024
1 parent 651160c commit 98e50bb
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Cargo Build & Test

defaults:
run:
shell: bash
working-directory: ./scripts

on:
push:
pull_request:
Expand All @@ -21,4 +26,5 @@ jobs:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: ./scripts/init_db_dir.sh
- run: cargo test --verbose
62 changes: 60 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ chrono = "0.4.38"
ansi_term = "0.12.1"
clap = { version = "4.5.19", features = ["derive"] }
thiserror = "1.0.64"
tempfile = "3.13.0"
7 changes: 7 additions & 0 deletions scripts/init_db_dir.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

DIRECTORY="$HOME/.local/share/noted"

if [ ! -d "$DIRECTORY" ]; then
mkdir -p "$DIRECTORY"
fi

0 comments on commit 98e50bb

Please sign in to comment.