Skip to content

Commit fb6c684

Browse files
authored
Refactor CLI build handling into helper functions (#82)
* Refactor CLI build handling * Deduplicate Ninja invocation and expand tests * Remove trailing comma from lint attribute * Apply mdtablefix to srgn doc * Expose Ninja constant for reuse - publish NINJA_PROGRAM so tests can import the default executable\n- point cucumber steps at the constant instead of repeating the string\n- tidy srgn guide paragraph and narrow test helper lint * Support Ninja override via env var
1 parent 9a0e7b3 commit fb6c684

File tree

6 files changed

+597
-194
lines changed

6 files changed

+597
-194
lines changed

AGENTS.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ project:
150150
with a backslash.
151151
- Prefer single line versions of functions where appropriate. I.e.,
152152

153-
```
153+
```rust
154154
pub fn new(id: u64) -> Self { Self(id) }
155155
```
156156

157157
Instead of:
158158

159-
```
159+
```rust
160160
pub fn new(id: u64) -> Self {
161161
Self(id)
162162
}
@@ -205,12 +205,17 @@ project:
205205
The following tooling is available in this environment:
206206

207207
- `mbake` – A Makefile validator. Run using `mbake validate Makefile`.
208-
- `strace` – Traces system calls and signals made by a process; useful for debugging runtime behaviour and syscalls.
209-
- `gdb` – The GNU Debugger, for inspecting and controlling programs as they execute (or post-mortem via core dumps).
210-
- `ripgrep` – Fast, recursive text search tool (`grep` alternative) that respects `.gitignore` files.
208+
- `strace` – Traces system calls and signals made by a process; useful for
209+
debugging runtime behaviour and syscalls.
210+
- `gdb` – The GNU Debugger, for inspecting and controlling programs as they
211+
execute (or post-mortem via core dumps).
212+
- `ripgrep` – Fast, recursive text search tool (`grep` alternative) that
213+
respects `.gitignore` files.
211214
- `ltrace` – Traces calls to dynamic library functions made by a process.
212-
- `valgrind` – Suite for detecting memory leaks, profiling, and debugging low-level memory errors.
213-
- `bpftrace` – High-level tracing tool for eBPF, using a custom scripting language for kernel and application tracing.
215+
- `valgrind` – Suite for detecting memory leaks, profiling, and debugging
216+
low-level memory errors.
217+
- `bpftrace` – High-level tracing tool for eBPF, using a custom scripting
218+
language for kernel and application tracing.
214219
- `lsof` – Lists open files and the processes using them.
215220
- `htop` – Interactive process viewer (visual upgrade to `top`).
216221
- `iotop` – Displays and monitors I/O usage by processes.
@@ -219,16 +224,21 @@ The following tooling is available in this environment:
219224
- `bat``cat` clone with syntax highlighting, Git integration, and paging.
220225
- `delta` – Syntax-highlighted pager for Git and diff output.
221226
- `tcpdump` – Captures and analyses network traffic at the packet level.
222-
- `nmap` – Network scanner for host discovery, port scanning, and service identification.
227+
- `nmap` – Network scanner for host discovery, port scanning, and service
228+
identification.
223229
- `lldb` – LLVM debugger, alternative to `gdb`.
224230
- `eza` – Modern `ls` replacement with more features and better defaults.
225231
- `fzf` – Interactive fuzzy finder for selecting files, commands, etc.
226232
- `hyperfine` – Command-line benchmarking tool with statistical output.
227233
- `shellcheck` – Linter for shell scripts, identifying errors and bad practices.
228234
- `fd` – Fast, user-friendly `find` alternative with sensible defaults.
229-
- `checkmake` – Linter for `Makefile`s, ensuring they follow best practices and conventions.
230-
- `srgn`[Structural grep](https://github.com/alexpovel/srgn), searches code and enables editing by syntax tree patterns (see `docs/srgn.md` for a complete guide).
231-
- `difft` **(Difftastic)** – Semantic diff tool that compares code structure rather than just text differences.
235+
- `checkmake` – Linter for `Makefile`s, ensuring they follow best practices and
236+
conventions.
237+
- `srgn`[Structural grep](https://github.com/alexpovel/srgn), searches code
238+
and enables editing by syntax tree patterns (see `docs/srgn.md` for a
239+
complete guide).
240+
- `difft` **(Difftastic)** – Semantic diff tool that compares code structure
241+
rather than just text differences.
232242

233243
## Key Takeaway
234244

0 commit comments

Comments
 (0)