-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (28 loc) · 977 Bytes
/
justfile
File metadata and controls
38 lines (28 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# justfile example recipes
# Set default shell
set shell := ["bash", "-cu"]
# Default recipe: lists all available recipes
default:
@just --list
# Example DuckDB recipes
query-duckdb db="my_database.duckdb" table="my_table":
# Executes a SQL query on a DuckDB database
duckdb {{db}} -c "SELECT * FROM {{table}} LIMIT 10;"
load-csv-to-duckdb db="my_database.duckdb" csv="data.csv" table="my_table":
# Loads a CSV file into a DuckDB table
duckdb {{db}} -c "CREATE TABLE IF NOT EXISTS {{table}} AS SELECT * FROM read_csv('{{csv}}');"
# Git commands
git-status:
# Shows the current git status
git status
git-pull:
# Pulls the latest changes from the remote repository
git pull origin main
git-push message="Update":
# Commits and pushes changes to the remote repository
git add .
git commit -m "{{message}}"
git push origin main
git-checkout branch="main":
# Checks out a specific branch
git checkout {{branch}}