Jimmi Holst Christensen
9c23bcb5ae
Update to latest version of zig
2024-01-09 08:21:40 +01:00
Krzysztof Wolicki
6aa5180eea
Update to latest master
2024-01-05 13:35:13 +01:00
Abhinav Gupta
7af04ee30d
Add autodoc website
...
This adds a `zig build docs` step that builds the documentation website
and writes it to zig-out/docs.
It further includes a GitHub Workflow that publishes this website
to GitHub Pages. The GitHub Workflow is divided into two jobs:
- build: builds the documentation and uploads it
- publish: downloads the documentation and publishes it
These are separate jobs to minimize permissions available
to the build job.
This workflow runs on two events:
- after every push to master
- `workflow_dispatch`: this allows manually running the workflow
from its *Actions* page if something went wrong
---
**Important pre-merge steps:**
If this PR is accepted, the following steps should be taken
before merging the PR:
1. Go to **Settings** for the repository
2. Select **Pages** on the left under *Code and automation*
3. Under *Build and deployment* set **Source** to **GitHub Actions**
4. Merge the PR.
If the steps are missed, the PR will merge just fine,
but the docs job will fail immediately on merge.
This can be remedied by following steps 1-3 above,
and either adding a new commit on master,
or manually firing the workflow from the Actions > API Reference page.
2024-01-02 13:16:54 +01:00
Jimmi Holst Christensen
cf3a4e7638
Remove the default allocator from ParseOptions
...
fixes #111
2023-12-13 08:59:38 +01:00
Jimmi Holst Christensen
c394594d21
Fix short only params not getting fields in Arguments
...
fixes #84
2023-11-16 12:01:26 +01:00
Taegon Kim
f108cfafdb
Add build.zig.zon ( #108 )
2023-11-10 09:45:16 +01:00
Jimmi Holst Christensen
34e068756e
parsers: Add extra tests to clap.parsers.int
2023-09-10 21:08:11 +02:00
Jimmi Holst Christensen
22c05f4491
parsers: Actually add some documentation to these functions
2023-09-10 21:08:11 +02:00
Marcus Wågberg
f49b94700e
Update to latest zig (4d7dd1689)
2023-08-03 09:37:01 +02:00
Jimmi Holst Christensen
bdb5853b67
Update to latest zig
2023-06-27 09:07:17 +02:00
Jimmi Holst Christensen
3d78af4b00
Update to latest zig
2023-06-22 09:25:54 +02:00
Jimmi Holst Christensen
a1b7a7301b
Update to latest version of zig
2023-06-18 13:44:35 +02:00
Andreas Herrmann
988375ab79
help,usage: Support multiple positionals ( #97 )
2023-06-15 09:53:14 +02:00
Komari Spaghetti
05a50fe7fe
ci: Disable ReleaseSmall builds
2023-04-17 08:56:24 +02:00
Jimmi Holst Christensen
7658c1a305
Update to newest version of zig
2023-04-14 08:38:50 +02:00
Devin J. Pohly
ab69ef2db4
Count occurrences of flags (was "Add .count type for flags") ( #96 )
...
Breaking change: parseEx now counts the number of occurrences of flag
parameters (those with takes_value == .none) and returns the count as a
u8. Users of the library will need to change
if (arg_result.my_flag)
to
if (arg_result.my_flag != 0)
2023-04-02 13:10:40 +02:00
Jimmi Holst Christensen
d38b13e7bc
Update build script to actually run the tests
2023-03-20 09:25:45 +01:00
Jimmi Holst Christensen
6310cbd576
Update to newest version of zig
2023-03-19 11:45:59 +01:00
Travis Staloch
cb13519431
build: use new addModule() API which now returns a Module
2023-03-06 23:26:33 +01:00
Jimmi Holst Christensen
b8b2cf891d
Mode addModule to the top
2023-03-01 15:48:59 +01:00
Jimmi Holst Christensen
305bc8d997
Delete dependabot.yml. We don't have dependecies
2023-02-28 16:14:41 +01:00
travisstaloch
9c3ac84612
build: expose 'clap' module for dependeees ( #92 )
...
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
2023-02-26 19:05:56 +01:00
Rekai Musuka
861de651f3
chore: update to latest master
...
update to follow latest for loop syntax
2023-02-22 09:38:00 +01:00
Jimmi Holst Christensen
272d8e2088
ci: Rename release to optimize
2023-02-06 16:53:14 +01:00
Mike Rivnak
5a92828d30
use new syntax for optimizations
2023-02-06 09:13:27 +01:00
Jimmi Holst Christensen
c50cec492f
Update to latest version of zig
2023-02-05 22:22:00 +01:00
Jimmi Holst Christensen
6c9ca90251
Fix misspelled things
2023-01-12 19:49:56 +01:00
Jimmi Holst Christensen
7dfef5b10d
year++
2023-01-04 10:52:20 +01:00
Jakub Konka
88edafd00e
Update to latest Zig master
...
Rename `builtin.Struct.field_type` to `builtin.Struct.type`.
2022-12-20 14:11:37 +01:00
Jimmi Holst Christensen
8a38c14266
Fix cicd
2022-12-09 11:04:39 +01:00
Jimmi Holst Christensen
a5452fd8c4
Update to newest version of zig
2022-12-09 10:49:54 +01:00
Rekai Musuka
a1b01ffeab
Handle change to std.ArrayList(T).toOwnedSlice()
...
toOwnedSlice() now returns an error union
2022-12-01 09:35:21 +01:00
Jimmi Holst Christensen
dbc6b8e54a
Workaround stage2 bug
2022-11-22 14:51:36 +01:00
Jimmi Holst Christensen
859de57556
Don't iterate all configs in build script
...
Instead, cicd will now have a job for every configuration
2022-11-15 11:17:21 +01:00
dependabot[bot]
17e7406a87
Bump goto-bus-stop/setup-zig from 1.3.0 to 2.0.1
...
Bumps [goto-bus-stop/setup-zig](https://github.com/goto-bus-stop/setup-zig ) from 1.3.0 to 2.0.1.
- [Release notes](https://github.com/goto-bus-stop/setup-zig/releases )
- [Changelog](https://github.com/goto-bus-stop/setup-zig/blob/default/CHANGELOG.md )
- [Commits](https://github.com/goto-bus-stop/setup-zig/compare/v1.3.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: goto-bus-stop/setup-zig
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 13:47:40 +01:00
Jimmi Holst Christensen
749c43f1f8
0.6.0
2022-11-01 19:12:42 +01:00
Jimmi Holst Christensen
e5d09c4b2d
Fix regression from last commit
2022-10-03 12:57:05 +02:00
Jimmi Holst Christensen
c20bbf13df
Add function for getting the prefix of a param name
2022-10-03 12:46:43 +02:00
Jakub Konka
4f4196fc3b
use builtin.Type instead of deprecated builtin.TypeInfo
...
Syncs with latest zig master version 0.10.0-dev.4117+54854e2ab
2022-09-18 19:06:59 +02:00
Jimmi Holst Christensen
ee6cb6a17b
Fix zig-clap for new default compiler
...
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.
2022-08-25 18:07:44 +02:00
Jimmi Holst Christensen
1c09e0dc31
Have all tests have a name
...
fixes #79
2022-07-28 14:50:08 +02:00
Jimmi Holst Christensen
6368f0e3be
Update README template
2022-07-28 14:49:53 +02:00
Jimmi Holst Christensen
7f9eabeecf
Add clap.parsers.enumeration for parsing enums
...
closes #78
2022-07-25 18:16:19 +02:00
Jimmi Holst Christensen
a0b14e7fe8
Update LICENSE
2022-07-25 18:16:19 +02:00
Komari Spaghetti
5fb23b0cd1
Specify which version of Zig zig-clap targets
...
related #77
2022-07-22 11:01:17 +02:00
Jimmi Holst Christensen
996821a3e1
Print multi value positionals correctly in usage
2022-04-28 19:00:17 +02:00
Jimmi Holst Christensen
ac5f46541c
Update help and usage examples
2022-03-30 22:04:15 +02:00
Jimmi Holst Christensen
984c22948b
New help
api that provides options as to how paramters are printed.
...
fixes \#28
2022-03-30 21:57:51 +02:00
Jimmi Holst Christensen
0970eb827f
Fix long param parsing with '-' and '\_' in name
2022-03-24 11:08:21 +01:00
Jimmi Holst Christensen
b81787f02b
Fix usage output in README
2022-03-23 21:48:20 +01:00