Commit Graph

28 Commits

Author SHA1 Message Date
Tim Reichen
644e03b817
perf(cli,http,ini,internal,media-types): replace trim() comparisons with regexps (#5751) 2024-08-21 13:50:18 +09:00
Asher Gomez
ddd853d230
refactor(cli): minor cleanups (#5628)
* refactor(cli): minor cleanups

* fix
2024-08-05 17:36:31 +09:00
Tim Reichen
da1130ab51
refactor(cli): isNumber() (#5607) 2024-08-05 12:39:46 +09:00
Asher Gomez
12d6097289
refactor(cli): use non-null assertion in parseArgs() logic (#5618) 2024-08-02 05:34:53 +00:00
Tim Reichen
8648c6d7f4
refactor(cli): simplify argv and notFlags push (#5608)
initial commit

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-02 12:43:11 +10:00
Tim Reichen
0d30f029e5
chore(cli): simplify parseArgs() logic (#5601)
initial commit
2024-08-02 10:30:25 +10:00
Tim Reichen
f600976152
chore(cli): simplify setNested() and hasNested() (#5599)
initial commit
2024-08-02 10:17:09 +10:00
Tim Reichen
b5181c1b6a
refactor(cli): remove broken variable in favour of loop label (#5602)
initial commit
2024-08-01 11:25:09 +00:00
Tim Reichen
36d0b75b92
refactor(cli): use for of instead of for in loop (#5598)
initial commit
2024-08-01 21:16:17 +10:00
Tim Reichen
f632632558
refactor(cli): make regexps constants (#5595)
* initial commit

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-31 23:55:49 +00:00
Asher Gomez
96c15341ac
docs(cli): fix options arguments display (#5486)
* docs(cli): fix options presentation

* work
2024-07-19 13:09:12 +09:00
Asher Gomez
317a0d8773
docs(cli): documentation tweaks (#5458) 2024-07-17 11:46:48 +10:00
Asher Gomez
ad1dad6ce6
docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optional properties on types/interfaces have @default tag (#4933)
* docs: assert optional properties on types/interfaces have `@default` tag

* work

* work

* work

* work

* work

* work

* fix

* fix

* Update fs/expand_glob.ts

* cleanups

* cleanups

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-11 09:21:37 +00:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Yoshiya Hinosawa
2149e3465d
test(cli): improve test coverage (#5046) 2024-06-17 11:28:33 +09:00
Asher Gomez
dfbb3f6590
refactor(cli): cleanup use of @std/assert (#4966)
* refactor(cli): cleanup use of `@std/assert`

* update graph
2024-06-06 07:20:21 +10:00
Asher Gomez
c5ad9d48dc
docs(cli,encoding,fmt,jsonc,path,semver,testing,text,toml,url): remove "This module is browser compatible" note (#4945) 2024-06-04 13:21:54 +10:00
Asher Gomez
31b906db99
chore: ensure code examples use assertions in Doc Linter (#4911) 2024-06-03 14:10:27 +10:00
David Sherret
c0d75322c7
docs(cli): make check_docs pass (#4815) 2024-05-23 12:53:13 -04:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Tim Reichen
f6e4a07200
refactor(cli): reland cleanup parse_args.ts (#4487) 2024-03-17 06:58:25 +09:00
Yoshiya Hinosawa
469c3c605d
Revert "refactor(cli): cleanup parse_args.ts (#4189)" (#4485)
This reverts commit 8c022c4f64.
2024-03-14 15:35:46 +09:00
Gabriele Belluardo
6c7b13d5ca
chore(cli): prepare for noUncheckedIndexedAccess (#4443)
* chore(cli): prepare for `noUncheckedIndexedAccess`

* Update cli/parse_args.ts

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-06 09:41:28 +11:00
Tim Reichen
8c022c4f64
refactor(cli): cleanup parse_args.ts (#4189)
* initial commit

* fix typo

* rename negated capturing group

* update nested functions

* update

* simplify setNested

* update

* add parseBooleanValue

* update

* remove unknown  value type

* rename fns

* update

* Update parse_args.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Update cli/parse_args.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* update

* revert to letters.entries()

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-12 10:15:51 +11:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link} tag where necessary. (#4253)
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11:00
Simon Holloway
cdab4c6601
refactor(cli): prepare for noUncheckedIndexedAccess (#4121)
* refactor(cli): prepare for noUncheckedIndexedAccess

* replace typeof with key !== undefined

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* replace all typeof !== "undefined" with !== undefined

* use assertExists

* tweaks

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-10 10:11:20 +00:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Lino Le Van
16db0d5e6f
BREAKING: move std/flags to new std/cli sub-module (#3530)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-16 11:08:51 +09:00