Skip to content

Commit

Permalink
🚜 Refactors fmt and private recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Sep 17, 2024
1 parent 4097f49 commit 3bb9641
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 17 deletions.
8 changes: 5 additions & 3 deletions home/.justfiles/llm.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

justfile := justfile_directory() + "/.justfiles/llm.justfile"

@_default:
just --list
[private]
@default:
just --list --justfile {{ justfile }}

@_fmt:
[private]
@fmt:
just --fmt --justfile {{ justfile }}

@install:
Expand Down
8 changes: 5 additions & 3 deletions home/.justfiles/macos.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

justfile := justfile_directory() + "/.justfiles/macos.justfile"

@_default:
just --list
[private]
@default:
just --list --justfile {{ justfile }}

@_fmt:
[private]
@fmt:
just --fmt --justfile {{ justfile }}

# ----------------------------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions home/.justfiles/ollama.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# ----------------------------------------------------------------

justfile := justfile_directory() + "/.justfiles/ollama.justfile"

export OLLAMA_HOST := "0.0.0.0:11434"
export OLLAMA_KEEP_ALIVE := "30m"
export OLLAMA_ORIGINS := "http://*"

@_default:
just --list
[private]
@default:
just --list --justfile {{ justfile }}

@_fmt:
[private]
@fmt:
just --fmt --justfile {{ justfile }}

@copy-plist:
Expand Down
8 changes: 5 additions & 3 deletions home/.justfiles/virtualenv.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

justfile := justfile_directory() + "/.justfiles/virtualenv.justfile"

@_default:
just --list
[private]
@default:
just --list --justfile {{ justfile }}

@_fmt:
[private]
@fmt:
just --fmt --justfile {{ justfile }}

scan:
Expand Down
8 changes: 5 additions & 3 deletions home/.justfiles/virtualenvwrapper.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

justfile := justfile_directory() + "/.justfiles/virtualenvwrapper.justfile"

@_default:
just --list
[private]
@default:
just --list --justfile {{ justfile }}

@_fmt:
[private]
@fmt:
just --fmt --justfile {{ justfile }}

# ----------------------------------------------------------------
Expand Down
8 changes: 7 additions & 1 deletion home/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ alias lock := freeze
# In the spirit of "Scripts to rule them all"
# ----------------------------------------------------------------

@_default:
[private]
@default:
just --list

# installs/updates all dependencies
Expand All @@ -48,6 +49,11 @@ alias lock := freeze
# format and overwrite justfile
@fmt:
just --fmt --unstable
just llm fmt
just macos fmt
just ollama fmt
just virtualenv fmt
just virtualenvwrapper fmt

# Updates our lockfiles without installing dependencies
@freeze:
Expand Down

0 comments on commit 3bb9641

Please sign in to comment.