manly
manly copied to clipboard
Allow subcommands for some commands
Support subcommands for e.g. git like git status
which have their own man pages.
So far, I have invoked commands with hyphens (manly git-branch ...
) to use manly
for subcommands. I am considering if this is better.
This is a high quality patch and I appreciate your interest in improving the project. Do you think there are other solutions than maintaining a list of commands that have sub commands?
I already thought about it, but I haven’t had a idea that was simple but works well.
- There is no common syntax in makefiles for this case
- A config file would not be a good option imho
- A try error would be possible but increase runtime (may be the best option)
What do you think?
I mean we could try concatenating the words starting without hyphens first and then go for the regular manpage if that fails. This feels a little bit icky to me (but please object, if you think otherwise!), so I'm inclined to go with your original proposal or print a warning to stderr when the user types a command with multiple words in row without hyphens.
What do you think about Häsin ganz environment variable and set it to the values I entered as default?
I'm sorry, but I dont understand your comment :D
Sorry that was my fault, or the iOS autocorrection feature
What do you think of defining the commands that use subcommands as an environment variable. The default could still be the ones I added, but it is up to the user to redefine or extend the list.