summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add `Diagnostic.reportToFile`Gravatar Jimmi Holst Christensen2025-07-221-4/+2
| | | | | | The code for reporting errors became quite verbose after writegate. Reporting to stderr is very common, so this wrapper provides a default, buffered way to report to a file.
* Update to Zig 0.15.0-dev.1147Gravatar Ivan Stepanov2025-07-211-2/+4
|
* Patch up README and fix comments in example files. (#143)Gravatar JustAnotherCodemonkey2024-11-251-2/+2
| | | The readme was also reflowed to 100 cols. I probably should have put that in a separate commit but oh well. The comments were not subjected to reflowing (yet).
* refactor: Always access using full namespaceGravatar Jimmi Holst Christensen2024-10-221-13/+9
| | | | This is my new preferred style of programming Zig :)
* Fix misspelled thingsGravatar Jimmi Holst Christensen2023-01-121-1/+1
|
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-1/+1
| | | | | | | | | | | | | | This changes - `.flag`, `.option`, `.options` and `.positionals` are now just fields you access on the result of `parse` and `parseEx`. - `clap.ComptimeClap` has been removed. - `clap.StreamingClap` is now called `clap.streaming.Clap` - `parse` and `parseEx` now takes a `value_parsers` argument that provides the parsers to parse values. - Remove `helpEx`, `helpFull`, `usageEx` and `usageFull`. They now just expect `Id` to have methods for getting the description and value texts.
* Revert "Change clap into generating a struct"Gravatar Jimmi Holst Christensen2022-02-251-1/+1
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-251-1/+1
| | | | | | | | | This changes - `.flag`, `.option`, `.options` and `.positionals` are now just fields you access. - Move the current `clap.parse` and friends into `clap.untyped.parse` - This is in preperation for `clap.typed.parse`
* Refactor the ArgIterator interfaceGravatar Jimmi Holst Christensen2022-01-311-4/+6
| | | | | | | | | They now follow the interface provided by the standard library. This now means that we no longer needs `args.OsIterator` as that the one from `std` can now be used directly. Also remove `args.ShellIterator` as a simular iterator exists in `std` called `ArgIteratorGeneral`.
* Use debug.print instead of deprecated debug.warn in examplesGravatar Komari Spaghetti2021-07-171-3/+3
| | | | fixes comment on #11
* Update to latest zig in preperation for 0.8.0Gravatar Komari Spaghetti2021-05-261-7/+3
|
* Merge branch 'master' into zig-masterGravatar Komari Spaghetti2021-05-261-17/+18
|\
| * Modernize codebaseGravatar Komari Spaghetti2021-05-081-10/+8
| | | | | | | | | | | | | | | | * Better naming for variables * Follow naming style of enums * Use `writer()` instead of `outStream()` * Change many initializers to be a one liner * Don't explicitly initialize fields to their default value
| * Refactor Diagnostic (and others) into a ParseOption structGravatar Komari Spaghetti2021-04-281-8/+7
| | | | | | | | | | | | This allows for default arguments, which we can also extend without breaking peoples code in the future. This is a breaking change right now though.
* | zig master updatesGravatar Asherah Connor2021-01-101-1/+1
|/
* Report error context in Diagnostic (#26)Gravatar Komari Spaghetti2020-11-021-1/+10
|
* adjust examples, README templateGravatar Asherah Connor2020-08-281-2/+2
|
* Run zig fmt on buildv0.2.0Gravatar Jimmi Holst Christensen2020-04-181-2/+2
|
* update examples to latest zigGravatar joachimschmidt5572020-04-111-1/+1
|
* update for latest zig (varargs is no more)Gravatar dbandstra2019-12-091-3/+3
|
* update for latest zigGravatar dbandstra2019-12-011-1/+1
|
* Breaking: OsIterator will now get the exe on initGravatar Jimmi Holst Christensen2019-11-091-5/+2
|
* build with latest version of zigGravatar Jimmi Holst Christensen2019-08-061-3/+1
|
* updated to newest version of zigGravatar Jimmi HC2019-06-121-5/+18
|
* Merge branch 'master' of github.com:Hejsil/zig-clapGravatar Jimmi Holst Christensen2019-01-171-2/+2
|\
| * Changed Names.prefix to Names.bothGravatar Jimmi HC2018-11-151-2/+2
| |
* | Refactored the arg iterators to new be static interface implementationsGravatar Jimmi Holst Christensen2019-01-171-4/+3
|/ | | | | * This makes arg iterators easier to understand and implement * It should also be faster than using the fieldToParent builtin
* Added help functionGravatar Jimmi Holst Christensen2018-11-151-10/+0
|
* Added pub flag/option/positional init funcs to ParamGravatar Jimmi Holst Christensen2018-11-141-3/+3
|
* Restructured and make StreamingClap simplerGravatar Jimmi Holst Christensen2018-11-141-0/+54
* Also added a ComptimeClap