Commit Graph

23 Commits

Author SHA1 Message Date
Patrick Stevens
95f5ceab03 Add no-attribute support for CreateCatamorphism (#461) 2025-11-28 18:58:27 +00:00
Patrick Stevens
67e051b6b3 Add --no- prefix for bools (#455)
Implements support for --no- prefix negation on boolean and flag DU fields
when marked with [<ArgumentNegateWithPrefix>]. This allows both --flag and
--no-flag forms to be accepted, with --no- variants negating the value.

Changes:
- Extend ArgParserGenerator to generate --no- prefix handling
- Add conflict detection for overlapping --no- prefixed arguments
- Update help text to display both forms (e.g., --verbose / --no-verbose)
- Add test examples in ArgParserNegationTests.fs demonstrating:
  - Boolean field negation
  - Flag DU negation
  - Multiple ArgumentLongForm with negation
  - Combined features (defaults, help text)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 07:53:15 +00:00
Patrick Stevens
1b85182b9d GenerateCapturingMock that captures calls made to it (#425) 2025-09-18 15:42:10 +01:00
Patrick Stevens
425d5313b4 Be compatible with <Nullable>enable</Nullable> (#369) 2025-04-21 18:43:52 +01:00
Patrick Stevens
7930039ad1 Revert "Some fixes to nullability (#365)" (#366)
This reverts commit 8d275f0047.
2025-04-20 17:02:40 +00:00
Patrick Stevens
8d275f0047 Some fixes to nullability (#365) 2025-04-20 16:26:45 +00:00
Patrick Stevens
4136f7fe94 Update to net9 SDK (#302) 2024-12-15 22:13:30 +00:00
Patrick Stevens
0652744c57 Allow using fsproj annotations instead of attributes (#275) 2024-10-02 19:30:21 +00:00
Patrick Stevens
93a1b630c8 Add HTTP Swagger client generator (#250) 2024-09-19 17:21:09 +01:00
Patrick Stevens
417ca45c37 Basic arg parser (#216) 2024-08-26 11:54:35 +01:00
Patrick Stevens
569b3cc553 Pull out general changes from ArgParser PR (#217) 2024-08-25 19:23:23 +00:00
Patrick Stevens
7b49505064 Absolute bare-bones support for generics in cata (#101) 2024-02-19 00:57:14 +00:00
Patrick Stevens
3ea1c7ab79 Add catamorphism generator (#97) 2024-02-17 23:16:54 +00:00
Patrick Stevens
82b40ee559 Fix baffling dependency issue (#88) 2024-02-07 09:40:44 +00:00
Patrick Stevens
aafee9495a JSON serialization (#69) 2024-01-26 10:53:08 +00:00
Patrick Stevens
515ea306a2 Map/dictionary support, and check for null when passing to ofJson (#68) 2024-01-25 19:56:44 +00:00
Patrick Stevens
ff2c08d54f Stamp out records corresponding to interfaces (#56) 2023-12-30 23:41:27 +00:00
Patrick Stevens
dc0f0803b3 Allow string return type, and URL-encode param (#38) 2023-12-29 18:13:39 +00:00
Patrick Stevens
67d870002e HTTP clients (#21) 2023-12-28 19:46:52 +00:00
Patrick Stevens
146554df72 No-op refactor of SynExpr helpers (#20) 2023-12-28 11:17:05 +00:00
Patrick Stevens
c4bfd5eedb Bring into WoofWare brand (#14) 2023-12-27 20:57:16 +00:00
Patrick Stevens
23d31d67bb Add PureGym tests (#13) 2023-12-27 20:26:21 +00:00
Patrick Stevens
39d603c317 Add JSON parse source gen (#9) 2023-12-27 11:46:12 +00:00