-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hey Ikel (@ikelaiah),
While I'm at it, in the suggestion wave, I would like to ask you if it would make sense to also have a code generation tool.
This stems from the fact that cobra has a rather simple CLI side project ( cobra-cli ) that generates code for any command and sub-commands.
This would be the perfect opportunity to explore the template package. It's something that I still need to better grasp, and looking at someone else's work/example is always a good way to understand it better.
I'm not quite sure if this is even possible, since the way a Go folder structure is done doesn't really translate to Free Pascal's way of doing it.
I'll leave you to ponder on these things!!
EDIT
I've had a bit more thought about this and I think I'm a bit to boxed in the cobra way of doing it. Maybe a Lazarus package that hooks up to the File->New... would be more in sync with the Free Pascal crowd... Dunno 🤷 The ball is in your court!! 🥰
Cheers,
Gus
PS:
With the colour feature, I must say that this is already above and beyond cobra.
I was thinking of suggesting adding a very simple logging system, but I'm not sure if this would be a bit of a feature creep.