Commit graph

16 commits

Author SHA1 Message Date
Maybe Waffle
b8148e0bc9 strip doc comments 2023-09-12 16:02:54 +04:00
Maybe Waffle
7508d53a9b Simplify some checks 2023-09-12 16:02:54 +04:00
Maybe Waffle
2162fbdf5c Somewhat rework attribute parsing to make it easier to handle #[doc] and more complex stuff
This turned out to be a lot worse than I anticipated, but it works, ok? :')
2023-09-12 16:02:29 +04:00
TheAwiteb
31f53f58fc
More check that is a doc comment 2023-09-12 07:50:31 +03:00
TheAwiteb
9545075023
Keep the \n in the doc comment as it is (don't replace it to newline) 2023-09-10 10:24:52 +03:00
TheAwiteb
4fe40f48b1
Parsing the doc comment as a doc comment :) 2023-09-10 10:24:52 +03:00
TheAwiteb
0d02c48afd
Possibility of using more than one attribute for the description 2023-09-10 10:22:13 +03:00
TheAwiteb
6fbe7154ba
Support the new line when adding another doc comment 2023-09-10 10:22:12 +03:00
TheAwiteb
d1ac816642
Improved doc attr extraction 2023-09-10 10:22:12 +03:00
TheAwiteb
99685f3dcc
Remove unnecessary collect 2023-09-10 10:22:11 +03:00
TheAwiteb
65baf3fcd3
Replace #[doc = ".."] with #[command(description = "...")] 2023-09-10 10:12:52 +03:00
TheAwiteb
42fd9b8693
Use AttrValue::expect_none with hide option 2023-09-07 08:03:08 +03:00
TheAwiteb
7881a1cb78
Fix https://github.com/teloxide/teloxide/issues/922 2023-08-29 01:15:56 +03:00
TheAwiteb
e003ece920 #[command(hide)] to hide a command from the help message 2023-06-14 18:28:01 +04:00
Maybe Waffle
1d84b2b76a Merge rustfmt.tomls 2022-11-07 16:13:29 +04:00
Maybe Waffle
0a3c5519dc move teloxide-macros to crates/ 2022-11-01 16:11:50 +04:00
Renamed from src/command_attr.rs (Browse further)