99 Commits

Author SHA1 Message Date
Delyan Angelov
3271c728d5 docs: use cmd/tools/find_doc_comments_with_no_dots.v to put some missing dots in the doc comments of public symbols. 2025-07-02 15:45:47 +03:00
Delyan Angelov
a1d94500e6
all: remove deprecations made before 2024-11-06 2025-05-05 09:31:32 +03:00
Kim Shrier
e1b9054a27
cli: account for initial indent on subcommands (#23985) 2025-03-20 13:33:27 +02:00
Kim Shrier
23c5bc78c4
cli: add missing struct members to str() method and fix some comments (#23893) 2025-03-09 22:14:17 +02:00
Kim Shrier
c826923b16
cli: fix minor typo (#23811) 2025-02-26 09:04:39 +02:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Turiiya
c0fec31bef
cli: fix default flags when their command equivalents are disabled (#21469)
* always replace `\r\n` with `\n`

* fix

* test

* cleanup

* add doc comment
2024-05-08 14:11:40 +03:00
Turiiya
4320f8641b
cli: cleanup execute functions of default commands / flags like -help and -man (#21470) 2024-05-08 13:47:26 +03:00
Turiiya
b53012a09b
cli: make program outputs using the cli module testable in cli/testdata (#21456) 2024-05-08 10:11:23 +03:00
Turiiya
7170f9da36
cli: simplify flag parsing (#21392) 2024-05-01 21:07:25 +03:00
Turiiya
e235641c29
cli: extend control over defaults (#21308) 2024-04-20 12:49:08 +03:00
Turiiya
bccf660456
cli: update command_test.v (#21307) 2024-04-18 22:05:47 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
db252d043e
cli: add pluralization to err msg, if required number of args is not met (#20971) 2024-03-07 20:57:58 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Yash Raj
04eb86c9fa
Fixed typo in flag.v (#19534) 2023-10-09 17:01:39 +03:00
Xavier Mitault
007519e130
cli: add attribute doc for Flag.global (#19224) 2023-08-27 14:34:25 +03:00
Alexander Medvednikov
428fd7f57f all: do not allow uninitialized function pointers 2023-08-03 21:06:36 +03:00
Felipe Pena
5d269ba703
cli: fix custom help without execute handler (#18732) 2023-07-04 06:48:53 +03:00
Felipe Pena
8445642567
cli: fix a panic and an infinite loop, when command flag descriptions have multiple lines (#17981) 2023-04-18 12:37:26 +03:00
Swastik Baranwal
da68b2d369
checker: remove c.pref.is_test exception for calling private methods in _other_ modules (#16872) 2023-01-05 15:41:18 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
Alexander Medvednikov
ca30397e7a cli: fix compilation 2022-06-26 07:08:05 +03:00
Vincenzo Palazzo
17bba712bd
checker: ban unsafe pointer/fn comparison (#14462) 2022-05-20 18:30:16 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Larpon
283d181047
cli: add missing doc strings (#14158) 2022-04-25 14:41:46 +03:00
Cameron Katri
340543dfc0
cli: add automatic manpage generation with -man (#13911) 2022-04-03 10:12:47 +03:00
Hunam
74d5106e8f
cli: print cli errors in red where possible (#13647) 2022-03-04 12:28:11 +02:00
Tim Basel
1fdbdf4a6b
cli: make help fn's public (#13275) 2022-01-25 15:58:06 +02:00
jeffmikels
6e6d51a1c9
docs: add more documentation to each of the modules in vlib (#13043) 2022-01-07 13:28:50 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
zakuro
9c74fb0449
cli: fix bug that caused help to panic (#11157) 2021-08-12 09:25:28 +03:00
div72
8c2f7901aa
cli: have a posix mode to handle -- (#11133) 2021-08-11 12:26:17 +03:00
Uwe Krüger
d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap (#9873) 2021-04-25 21:40:38 +03:00
Emeric MARTINEAU
125236694f
cli: improve multiple value management (#8310) 2021-03-19 13:09:56 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
zakuro
95e5f68b64
cli: don't sort flags / commands by default (#8813) 2021-02-21 16:17:50 +02:00
Stanislav Ershov
44cb0426f4
cli: fix checking callbacks (#8858) 2021-02-20 17:30:39 +02:00
Miccah
a153ec5951
cli: ensure that required flags are set (#8826) 2021-02-19 12:43:18 +02:00