You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,14 @@ Priorities, in order:
35
35
36
36
-`src/lib.zig`: Public API entry point. Re-exports `Command`, `CommandOptions`, `Flag`, `FlagType`, `FlagValue`, `PositionalArg`, `CommandContext`,
37
37
`styles`, and `Error`.
38
-
-`src/chilli/command.zig`: The `Command` struct (command tree, init/deinit, `run`, subcommand and flag registration).
39
-
-`src/chilli/types.zig`: Core types (`CommandOptions`, `Flag`, `FlagType`, `FlagValue`, `PositionalArg`) and the `parseValue`helper.
38
+
-`src/chilli/command.zig`: The `Command` struct, `CommandOptions`, init/deinit, `run`, subcommand and flag registration, and the private help-output printers.
39
+
-`src/chilli/types.zig`: Core types (`Flag`, `FlagType`, `FlagValue`, `PositionalArg`) and the `parseBool` / `parseValue`helpers.
40
40
-`src/chilli/parser.zig`: Argument-string parser (`ArgIterator`, `ParsedFlag`, long/short/grouped flag handling, positional handling).
41
41
-`src/chilli/context.zig`: The `CommandContext` passed to each command's `exec` function for typed flag and argument access.
42
42
-`src/chilli/errors.zig`: Error types produced by parsing and type coercion.
43
-
-`src/chilli/utils.zig`: Shared helpers (`styles` for ANSI colors, `parseBool`, and other small utilities).
43
+
-`src/chilli/styles.zig`: ANSI escape-code constants plus a TTY-gated `s()` wrapper used by the help and error output.
44
44
-`examples/`: Self-contained example programs (`e1_simple_cli.zig` through `e8_flags_and_args.zig`) built as executables via `build.zig`.
45
-
-`.github/workflows/`: CI workflows (`tests.yml` for unit tests on Linux and Windows, `docs.yml` for API doc deployment).
45
+
-`.github/workflows/`: CI workflows (`tests.yml` for unit tests on Linux, macOS, and Windows, `docs.yml` for API doc deployment).
46
46
-`build.zig` / `build.zig.zon`: Zig build configuration and package metadata.
47
47
-`Makefile`: GNU Make wrapper around `zig build` targets.
48
48
-`docs/`: Generated API docs land in `docs/api/` (produced by `make docs`).
@@ -135,7 +135,7 @@ Good first tasks:
135
135
136
136
Before coding:
137
137
138
-
1. Modules affected by the change (`command`, `parser`, `types`, `context`, `errors`, or `utils`).
138
+
1. Modules affected by the change (`command`, `parser`, `types`, `context`, `errors`, or `styles`).
139
139
2. Whether the change is user-visible in `--help` output, and if so, which examples will surface it.
140
140
3. Public API impact, i.e. whether the change adds to or alters anything re-exported from `src/lib.zig`, and is therefore additive or breaking.
141
141
4. Cross-platform implications, especially for anything that touches environment variables, the filesystem, or process-args encoding.
0 commit comments