Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
set default-list := true

vm := "buddy"
config_dir := "$HOME/.config/buddy"

host:
mkdir -p "{{ env('HOME') / 'buddy' }}"
Expand All @@ -25,6 +26,9 @@ restart: stop start
delete: stop
limactl delete --force "{{ vm }}"

delete-file path:
limactl shell "{{ vm }}" bash -lc 'rm -f "{{ path }}"'

login: login-codex login-datadog login-fastly

login-codex:
Expand All @@ -33,6 +37,8 @@ login-codex:
login-datadog:
cargo run --quiet -- login-datadog "{{ vm }}"

logout-datadog: (delete-file (config_dir / "datadog.env"))

dump-datadog-permissions:
cargo run --quiet -- datadog-permissions dump "{{ vm }}"

Expand All @@ -42,6 +48,8 @@ assert-datadog-credentials:
login-fastly:
cargo run --quiet -- login-fastly "{{ vm }}"

logout-fastly: (delete-file (config_dir / "fastly.env"))

# Upgrade manually. Upgrades are not done in `system.sh` because
# a full upgrade would make startup slower, less predictable, and could install kernel updates requiring another reboot.
upgrade:
Expand Down