Commit graph

221 commits

Author SHA1 Message Date
Ayaz Hafiz
efddc38e66
Add EnvDecoding to cli-platform 2022-09-27 18:21:47 -05:00
Ayaz Hafiz
e04960573e
Format env.roc 2022-09-27 18:21:05 -05:00
Ayaz Hafiz
9cd82ab7e4
Ignore env binary 2022-09-27 18:18:42 -05:00
Ayaz Hafiz
331a4c2888
Format Env.roc 2022-09-27 18:17:52 -05:00
Ayaz Hafiz
43e734f75c
Make implementation easier to read 2022-09-27 18:03:19 -05:00
Ayaz Hafiz
a8b1cb2d90
Implement decoding lists from env vars 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
57231de0c1
Add example of decoding environment variables 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
b9f34df96d
Add comment about annotations 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
38ab8de37c
Implement Env.decode for the CLI platform 2022-09-27 17:57:45 -05:00
Ayaz
211c297230
Merge pull request #4041 from KilianVounckx/opaque-bool
Opaque bool
2022-09-21 11:15:41 -05:00
Ayaz Hafiz
140c33aa50
Update Args.roc 2022-09-20 14:42:09 -05:00
kilianv
610c529ba8
Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
Ayaz Hafiz
0cb48c6404
Simplify CLI platform arms further 2022-09-20 14:30:25 -05:00
Ayaz Hafiz
49ba8b92b4
Remove unreachable branches in Program.roc 2022-09-20 14:14:31 -05:00
Richard Feldman
7df7e1bbb7
Drop obsolete declaration 2022-09-19 21:13:22 -04:00
Richard Feldman
b6157e76b8
Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
Richard Feldman
3c12f79771
roc format 2022-09-19 20:07:23 -04:00
Richard Feldman
aa6d29fbb1
Update CLI examples and tests to use Program 2022-09-19 20:06:29 -04:00
Richard Feldman
0e472200f0
Add ExitCode type 2022-09-19 15:23:07 -04:00
Richard Feldman
45df950cf6
Add Env.var 2022-09-19 13:02:31 -04:00
Richard Feldman
ed31b1cb74
Implement Env.dict, move args to Effect 2022-09-19 12:44:26 -04:00
Richard Feldman
ffa2e657e8
Revise file.roc example 2022-09-19 12:30:14 -04:00
Richard Feldman
96f8818b24
Fix type mismatches in file.roc example 2022-09-19 10:27:44 -04:00
Richard Feldman
f0a9bb0a96
Reorganize Program to use effects for getting args 2022-09-19 09:13:11 -04:00
Richard Feldman
3d68293da1
Expand Env docs 2022-09-19 09:13:11 -04:00
Richard Feldman
9232d8271f
Add Program to CLI platform 2022-09-19 09:13:10 -04:00
Ayaz Hafiz
c9e73b6761
Change example to be a calculator 2022-09-14 12:06:35 -05:00
Ayaz Hafiz
faeb3358eb
Add an I64 parser 2022-09-14 11:46:25 -05:00
Ayaz Hafiz
a91a9b7e79
Use empty strings to represent missing values 2022-09-14 11:41:48 -05:00
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