dig docs command

This commit is contained in:
2026-01-21 20:53:24 +11:00
parent b4fd43fb9b
commit d8cddfbbd4
3 changed files with 107 additions and 17 deletions

View File

@@ -42,6 +42,10 @@ def parse_arguments():
build_command.add_argument("--gcc-args", nargs="*", help="any extra args you want to give to gcc")
build_command.add_argument("--package", action="store_true", help="generate a folder with a mineral.ini and all the other files you need to publish the package")
# docs command
docs_command = sub_parsers.add_parser(name="docs", description="read the docs of a mineral")
docs_command.add_argument("mineral_name", help="name of the mineral you want to read the docs of")
docs_command.add_argument("-d", "--doc-file", help="load a specific doc file")
# parse arguments are run the command we chose
args = arg_parser.parse_args()
@@ -62,6 +66,9 @@ def parse_arguments():
uninstall(args)
elif args.command == "build":
build(args)
elif args.command == "docs":
from docs import docs
docs(args)
def main():
parse_arguments()