From 56f6b6e4fdde499f90da53da33eb53f816005d4a Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 29 May 2025 15:31:00 -0700 Subject: [PATCH] fix: update justfile to facilitate running CLIs from source and formatting source code --- codex-rs/justfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/codex-rs/justfile b/codex-rs/justfile index 61339a23200..12088585ff6 100644 --- a/codex-rs/justfile +++ b/codex-rs/justfile @@ -2,14 +2,18 @@ help: just -l -# Install the `codex-tui` binary -install: - cargo install --path tui +# `codex` +codex *args: + cargo run --bin codex -- {{args}} -# Run the TUI app +# `codex exec` +exec *args: + cargo run --bin codex -- exec {{args}} + +# `codex tui` tui *args: cargo run --bin codex -- tui {{args}} -# Run the Proto app -proto *args: - cargo run --bin codex -- proto {{args}} +# format code +fmt: + cargo fmt -- --config imports_granularity=Item