You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to see something like this, as well as an easier way to implement version commands, considering currently, you have to make a __version method and map it, which is a bit inconvenient.
If you could do
I do like the mapping feature as it allows me to make debugging options, like --gem-info or things of that nature that are a command in a sense but are better marked and input as an option in the whole grand scheme of things.
GLI itself, which I have been using for a while, it has been good, but I find thor to be a better kept library, a couple things GLI does have that I'd like to see in thor would be,
version -- As I have said
pre_command, post_command, around_command hooks -- This would help with Configuration files and state keeping for larger projects
Yes you could run a configuration setup before each command code, but that tends to make the state keeping a bit messy, as, if thor had a pre or around hook, I could #initialize or load my configuration once in the whole process and use hooks that they have implemented to reload configuration on the fly.
This discussion was converted from issue #646 on May 12, 2023 22:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In reference to #553
I'd like to see something like this, as well as an easier way to implement version commands, considering currently, you have to make a __version method and map it, which is a bit inconvenient.
If you could do
In regards to other suggestions
I do like the mapping feature as it allows me to make debugging options, like --gem-info or things of that nature that are a command in a sense but are better marked and input as an option in the whole grand scheme of things.
GLI itself, which I have been using for a while, it has been good, but I find thor to be a better kept library, a couple things GLI does have that I'd like to see in thor would be,
#initialize
or load my configuration once in the whole process and use hooks that they have implemented to reload configuration on the fly.I'll add more to this as I can think of things.
Beta Was this translation helpful? Give feedback.
All reactions