Commit graph

1527 commits

Author SHA1 Message Date
Ayaz Hafiz
e7b216fa30
Fix docs link 2022-09-14 11:26:53 -05:00
Ayaz Hafiz
93f0a0eeb9
Add documentation 2022-09-14 11:26:53 -05:00
Ayaz Hafiz
ed78848737
Reset file/err.roc 2022-09-14 11:26:53 -05:00
Ayaz Hafiz
d460fc76d3
Lift commands 2022-09-14 11:26:53 -05:00
Ayaz Hafiz
e39fccb0fa
Add cli run test 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
89e70fea4b
Format 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
1bbe56248c
Simplify subparser mapping 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
d9a94a36c5
Flip subCommand order 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
24885e99bc
Format 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
664bcdff33
Improve error message 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
40f5cad578
Add help to named program 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
4b7c11cb2d
Format command help with headings 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
d448083e7a
Use named parser in example 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
812081eefe
named function to create NamedParser 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
990c912abd
Chain named 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
4999e391ee
Flip name order 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
5ea56beae1
Name parsers 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
bf204dcce8
Have parse take program name 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
487ecee143
Expand arg cli example 2022-09-14 11:26:51 -05:00
Ayaz Hafiz
0672a591b6
Expose subCommand, choice 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
7d2249364f
Rename apply to withParser 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
dd88af75c9
Error handling for subcommands 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
391c87b50b
Initial support for subcommands 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
6d1a903841
Remove Default for now 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
2e1d99299f
Use parseFormatted 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
04fd4412fd
Expose apply 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
b0ab69d41c
Format help 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
9c34aac6fd
Start on parseFormatted 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
e7c0cad1e7
Report missing args and types in errors 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
8d2d0671d3
Improve arg example 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
406d476e29
Expose apply 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
f7fdb725c8
Revert "Rename Arg to ArgParse"
This reverts commit 3b3f1699a6b6d275bfd8a26137a4c5666db23a37.
2022-09-14 11:26:49 -05:00
Ayaz Hafiz
c5eb271497
Rename Arg to ArgParse 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
0b53f40c02
Expose bool, str 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
75b93c5563
Add types to config 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
b453bc9d31
Format 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
ff725be187
Admit optional record fields when constructing parsers 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
490bb51d71
Rename bool and str 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
ea6bdb7fc3
roc format 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
ccb579dda8
Implement toHelp 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
0b7d9e58ae
Revert "Remove WithConfig for now"
This reverts commit 38dd0aa449b9dcc572462788860535894f71deee.
2022-09-14 11:26:47 -05:00
Ayaz Hafiz
7e89c8777b
Simplify 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
e738d5e04e
Name tests 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
42bded0aae
Refactor to use OptionStr 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
6979338617
Remove WithConfig for now 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
9c3c64c252
Move parser to Arg.roc 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
a46713dd87
Clear out env and file examples 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
6a19e3d7d5
Clear out cli platform changes 2022-09-14 11:26:46 -05:00
Ayaz Hafiz
2cd7535320
Add some more expects to the arg parser 2022-09-14 11:26:46 -05:00
Richard Feldman
4046d883c9
Get basic andMap example working 2022-09-14 11:26:46 -05:00