Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: implement HELP #129

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

internet-catte
Copy link
Contributor

this does not work, or even compile yet, but I wanted some advice/guidance.

my plan here is:

  1. document commands as doc comments
  2. grab the doc comment
  3. and store it somewhere (where?)
  4. return that for HELP cmd

Right now i've achieved 1 and 2, and have the mechanism of 4 mapped out, so the big question is how to link things up.

A similar method could be used for services help, but because of the limitations of HELP (topics can only be one word), this would have to be done in the typical services way (NS HELP subcmd, CS HELP subcmd). This might be doable in this PR once the details are ironed out.

Listing help topics is pretty straightforward, just get all the help topics and print them out. I've done it chunked to have something similar to solanum's output.

now supports aliases and restricted commands, captures docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant