Creation of lucky notes
command?
#1420
Replies: 2 comments 1 reply
-
@stephendolan does ameba do this? it seems like a great use case for a more general purpose tool like ameba |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if we'd need a whole task for this or not. I originally thought there was a crystal CLI command that just did it, but I was getting that mixed up with the rails rake task. Right now you can easily find them with:
I think if we did end up adding a task for this, we'd want to make it simple enough that it was super easy to use and remember, but also useful enough that you'd want to use it over just grep. We could definitely make the output a lot prettier. It would just be tricky to keep it cross-platform, and super fast. |
Beta Was this translation helpful? Give feedback.
-
We were discussing this in Discord the other day, and I think it'd be a cool backlog issue to track on to create a new CLI task called
notes
that jumps in and finds instances of some common "TODO" comments, and then prints them out.Crystal already kind of does this in documentation:
https://crystal-lang.org/reference/conventions/documenting_code.html#flagging-classes-modules-and-methods
I think it'd be neat to copy Rails' implementation for a more command-line based approach:
https://github.com/rails/rails/blob/main/railties/lib/rails/source_annotation_extractor.rb
I figured we could start in a discussion, then transfer to an issue if we agree it's a cool backlog feature :)
Beta Was this translation helpful? Give feedback.
All reactions