Commit Graph
83 Commits
Author SHA1 Message Date
Alexander Pankoff 89b5d1c4bb CLI: Print unknown argument errors (#2252) 2024-03-05 10:11:20 -05:00
Alexander Pankoff 0c2da75f49 Remove duplicate word in wizard mode prompt (#2240) 2024-03-01 15:48:22 -05:00
Michael Arnaldi 14c5711007 Remove Effect.unified and Effect.unifiedFn in favour of Unify.unify (#2158) 2024-02-21 14:48:18 +01:00
Michael ArnaldiandMaxwell Brown a025b12123 Swap Either type params (#2102)
Co-authored-by: Maxwell Brown <maxwellbrown1990@gmail.com>
2024-02-21 14:48:18 +01:00
Maxwell Brown bbb097b767 Fix wizard mode to show root command name instead of executable (#2175) 2024-02-18 21:20:41 +01:00
Maxwell Brown cbd1a5a3c4 Fix the root command name in generated shell completion scripts (#2173) 2024-02-18 14:51:23 +13:00
Giulio Canti 60686f5c38 change Layer type parameters order from Layer<RIn, E, ROut> to Layer<ROut, E = never, RIn = never> (#2044) 2024-02-09 16:51:47 +13:00
Giulio Canti 1a77f72cda change Effect type parameters order (#2034) 2024-02-09 16:51:47 +13:00
Michael ArnaldiandTim 9a2d1c1468 feat(breaking): Add ClassTag, improve Effect.serviceConstants, require string identifier for all tags (#2028)
Co-authored-by: Tim <hello@timsmart.co>
2024-02-09 16:51:47 +13:00
Michael Arnaldi 02c34615d0 feat: Make Equal an implicit trait, namely remove the type Data.Data (#2023) 2024-02-09 16:51:47 +13:00
Giulio Canti a34dbdc155 Schema: change type parameters order from Schema<R, I, A> to Schema<A, I = A, R = never> (#2026) 2024-02-09 16:51:47 +13:00
Tim eb1f7878c9 make array types in cli more permissive (#2047) 2024-02-06 17:58:27 +01:00
Maxwell Brown aab2e4e156 Ensure single invalid variadic option is reported as an error (#2001) 2024-01-29 17:40:42 +13:00
Maxwell Brown 003bb691f2 Fix stack overflow exception when nesting cli options / args in a Command config (#1990) 2024-01-27 07:52:56 +13:00
Maxwell Brown eaab2e81be Default Options.repeated to an empty array if option not provided (#1984) 2024-01-25 17:00:15 -05:00
Maxwell Brown 9cf3782a17 Fix CLI argument parsing to properly handle when a repeated option is not provided (#1980) 2024-01-26 09:05:41 +13:00
62b40e8479 add context tracking to Schema, closes #1873, #1954, #1956 (#1922)
Co-authored-by: Tim <hello@timsmart.co>
Co-authored-by: Tim Smart <tim.smart@arisechurch.com>
2024-01-24 12:01:44 +01:00
Maxwell Brown de4cb049a3 Fix the parsed letter case for variadic and key/value CLI flags (#1963) 2024-01-24 07:57:04 +13:00
Tim d21e028fe2 fix Options.mapEffect export (#1942) 2024-01-18 10:57:26 +13:00
Maxwell Brown 9a0d61f674 Rename mapOrFail to mapEffect (#1938) 2024-01-17 13:41:49 -05:00
Maxwell Brown 86180cc961 Introduce the executable argument to CliApp.make (#1925) 2024-01-16 16:42:21 -05:00
Tim d1c7cf54fd add ConfigFile module to cli (#1907) 2024-01-12 12:54:30 +13:00
Tim 4863253bfc add file parsing apis to cli (#1899) 2024-01-12 08:56:42 +13:00
Tim 4ef1e6f4e0 add Schema apis to cli Options & Args (#1898) 2024-01-11 15:33:07 +13:00
Tim 78fec17bf1 fix Args.optional returning Option (#1853) 2024-01-03 21:32:48 +13:00
Sebastian Lorenz 04fb8b428b Avoid default param initialization (#1848) 2024-01-03 09:54:02 +13:00
Sebastian Lorenz 693b8f3a3d Enable exactOptionalPropertyTypes accross the board (#1846) 2024-01-02 07:41:07 +13:00
Michael Arnaldi c5c987d7a5 apply new linting rules 2023-12-27 10:50:55 +01:00
Tim 33f035c084 update effect (#432) 2023-12-22 09:49:37 +13:00
Tim 73e54e9f9a fix for multiple handler transforms (#428) 2023-12-13 20:23:47 +13:00
Tim cf38149edf add Command.provideSync/provideEffect (#426) 2023-12-13 16:13:45 +13:00
Tim 997da481cf add apis for manipulating handlers (#422) 2023-12-13 11:13:00 +13:00
Tim 8ca5383d84 update effect (#417) 2023-12-11 11:26:47 +13:00
Maxwell Brown 90aceff19a Make help documentation print built-in options by default (#416) 2023-12-08 08:21:31 -05:00
Maxwell Brown e99e2da9a9 Add primitive for holding sensitive / confidential values (#404) 2023-12-07 14:31:56 -05:00
Maxwell Brown 3f4275c88a Default CliConfig.finalCheckBuiltIn to false (#411) 2023-12-07 13:53:51 -05:00
Maxwell Brown 0bf888ede3 Remove orElse variants from Command (#409) 2023-12-06 22:21:36 -05:00
Tim c64903ddc5 update effect (#410) 2023-12-06 16:25:29 +13:00
Tim 2975a8313f fix Subcommand type extraction (#407) 2023-12-04 11:41:22 +13:00
TimandMaxwell Brown 73fdd9a42c add Args/Options.withFallbackConfig (#403)
Co-authored-by: Maxwell Brown <maxwellbrown1990@gmail.com>
2023-12-03 08:54:45 +13:00
Maxwell Brown 4af3ee64f1 Ensure error on excess args (#402) 2023-12-01 14:19:29 -05:00
Maxwell Brown 8bdc4ae216 Add tutorial to README (#401) 2023-12-01 14:02:01 -05:00
Maxwell Brown 1c6d5775e5 Allow --wizard for subcommands (#399) 2023-11-30 18:36:54 -05:00
Tim 21a0dc34f8 update effect (#398) 2023-12-01 11:42:03 +13:00
Tim 037d5d5157 fix withDescription for mapped commands (#397) 2023-12-01 09:17:28 +13:00
Maxwell Brown 8dee44bec7 Fix prompt styles (#396) 2023-11-30 11:42:18 -05:00
Maxwell Brown 7587eeecfd Add final confirmation to run command during wizard mode (#395) 2023-11-30 11:01:55 -05:00
Maxwell Brown 0ff94e01a1 Refactor the internals of prompt rendering (#394) 2023-11-30 09:05:24 -05:00
TimandMaxwell Brown 1231b06feb localized handlers for commands (#390)
Co-authored-by: Maxwell Brown <maxwellbrown1990@gmail.com>
2023-11-28 23:20:28 -05:00
Maxwell Brown ef0059bf74 Fix shell completions (#387) 2023-11-26 18:46:41 -05:00