summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add function for getting the prefix of a param nameGravatar Jimmi Holst Christensen2022-10-031-15/+19
|
* use builtin.Type instead of deprecated builtin.TypeInfoGravatar Jakub Konka2022-09-181-1/+1
| | | | Syncs with latest zig master version 0.10.0-dev.4117+54854e2ab
* Fix zig-clap for new default compilerGravatar Jimmi Holst Christensen2022-08-252-46/+65
| | | | | Also enable test suit for both stage 1 and stage 2, to ensure we don't break things for people who haven't switched yet.
* Have all tests have a nameGravatar Jimmi Holst Christensen2022-07-281-1/+1
| | | | fixes #79
* Update README templateGravatar Jimmi Holst Christensen2022-07-281-0/+5
|
* Add clap.parsers.enumeration for parsing enumsGravatar Jimmi Holst Christensen2022-07-253-0/+47
| | | | closes #78
* Update LICENSEGravatar Jimmi Holst Christensen2022-07-251-1/+1
|
* Specify which version of Zig zig-clap targetsGravatar Komari Spaghetti2022-07-221-0/+5
| | | related #77
* Print multi value positionals correctly in `usage`Gravatar Jimmi Holst Christensen2022-04-281-0/+6
|
* Update help and usage examplesGravatar Jimmi Holst Christensen2022-03-303-12/+12
|
* New `help` api that provides options as to how paramters are printed.Gravatar Jimmi Holst Christensen2022-03-304-100/+702
| | | | fixes \#28
* Fix long param parsing with '-' and '\_' in nameGravatar Jimmi Holst Christensen2022-03-241-2/+6
|
* Fix usage output in READMEGravatar Jimmi Holst Christensen2022-03-232-2/+2
|
* Add parseParams and friendsGravatar Jimmi Holst Christensen2022-03-237-391/+447
|
* Refactor parseParam into a state machineGravatar Jimmi Holst Christensen2022-03-231-64/+279
| | | | | | This new parser stops when it hits something that looks like a new parameter. This is the precurser to parsing multiple parameters in a single function.
* Workaround infinit loop caused by `try` inside `inline for`Gravatar Jimmi Holst Christensen2022-03-211-19/+59
| | | | fixes #72
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-0913-585/+570
| | | | | | | | | | | | | | 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.
* Bump actions/checkout from 2.4.0 to 3Gravatar dependabot[bot]2022-03-021-2/+2
| | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* Revert "Change clap into generating a struct"Gravatar Jimmi Holst Christensen2022-02-2511-506/+518
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-2511-518/+506
| | | | | | | | | 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`
* Fix minor typos in README.mdGravatar Jimmi Holst Christensen2022-02-222-2/+8
|
* Update package mod files to MITGravatar Jimmi Holst Christensen2022-02-032-2/+2
|
* Refactor the ArgIterator interfaceGravatar Jimmi Holst Christensen2022-01-316-331/+37
| | | | | | | | | 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`.
* Relicense to MITGravatar Jimmi Holst Christensen2022-01-311-20/+17
| | | | closes #64
* Avoid using the print APIGravatar Jimmi Holst Christensen2022-01-051-23/+37
| | | | | | The current Zig print API is quite good at slowing down compilation and producing binary bloat. This commit makes an attempt to avoid using it when not nessesary.
* Update usage of process.ArgIterator to be inline with newest zigGravatar Jimmi Holst Christensen2021-12-292-2/+5
| | | | | Also add windows CI, as this compiler error was only triggered on windows builds
* Tag 0.5.00.5.0Gravatar Komari Spaghetti2021-12-211-1/+1
|
* Master branch now follows zig masterGravatar Komari Spaghetti2021-12-213-8/+2
| | | | | It makes more sense to have the master branch follow zig master, and then create versioned branches to backport bug fixes to if nessesary
* Merge branch 'zig-master'Gravatar Komari Spaghetti2021-12-215-16/+16
|\
| * zig master updates: allocator changes (#60)Gravatar Asherah Connor2021-12-063-8/+8
| |
| * Fix regression in last commitGravatar Komari Spaghetti2021-10-112-2/+0
| | | | | | | | | | The importing of builtin was already fixed, so the latest commit applied this fix again, which caused problems
| * zig master updatesGravatar Asherah Connor2021-10-113-2/+4
| |
| * Merge branch 'master' into zig-masterGravatar Komari Spaghetti2021-10-093-9/+8
| |\
| * | Update mem.split call for latest zig masterGravatar Ryan Liptak2021-09-061-1/+1
| | |
| * | Merge branch 'master' into zig-masterGravatar Komari Spaghetti2021-09-054-12/+25
| |\ \
| * | | Update calls to tokenizerGravatar Stephen Gregoratto2021-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | The tokenize function was made generic, so we have to pass the type as the first parameter.
| * | | Update CI to zig masterGravatar Sirius9022021-07-251-2/+2
| | | |
| * | | Discard unused variableGravatar Sirius9022021-07-251-1/+1
| | | |
| * | | Merge branch 'master' into zig-masterGravatar Komari Spaghetti2021-07-173-11/+60
| |\ \ \
| * | | | Fix all new compiler errors from zig masterGravatar Komari Spaghetti2021-06-244-5/+7
| | | | |
| * | | | Build buildscript with latest version of zigGravatar Komari Spaghetti2021-06-241-1/+1
| | | | |
* | | | | Improve help and usage examplesGravatar Jimmi Holst Christensen2021-11-294-30/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57
* | | | | Fix chaining typoGravatar Jimmi Holst Christensen2021-11-291-3/+3
| | | | | | | | | | | | | | | | | | | | fixes #58
* | | | | Bump actions/checkout from 2.3.5 to 2.4.0Gravatar dependabot[bot]2021-11-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | | Bump actions/checkout from 2.3.4 to 2.3.5Gravatar dependabot[bot]2021-10-181-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | Fix uses of builtinGravatar Komari Spaghetti2021-10-093-9/+8
| |_|/ |/| |
* | | Indent help text on every new line to allow for user-controlled wrappingGravatar Ryan Liptak2021-09-051-1/+14
| | |
* | | Use debug.print instead of deprecated debug.warn in examplesGravatar Komari Spaghetti2021-07-173-11/+11
| |/ |/| | | | | fixes comment on #11
* | Forward diagnostics down to StreamingClapGravatar Komari Spaghetti2021-07-161-5/+54
| | | | | | | | fixes #46
* | Update example of `usage` (#45)Gravatar J.R. "hiljusti" Hill2021-07-062-6/+6
| |