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

bazelreport command for cli #14

Open
danwos opened this issue Apr 5, 2019 · 0 comments
Open

bazelreport command for cli #14

danwos opened this issue Apr 5, 2019 · 0 comments

Comments

@danwos
Copy link
Member

danwos commented Apr 5, 2019

There is a use case to create a complete, nice looking documentation out of a bazel workspace, targets, rules, ...

So the goal is to get one/multiple .rst-documents, which contains headlines, text, bazel:xy output and maybe tables for attributes. These rst documents can then be integrated into each sphinx project.

This feature would provide a more readable, better structured output as autobazel-workspace can give, as it creates output row by row only (no tables or headlines).

Main focus is to document found targets (.bzl-fies).
For each target a rst-file shall be created.

Spec:

  • provide a command line command bazelreport
  • takes as first argument location to document or path with wildcards
  • has additional parameters:
    • -w: document workspace (if found)
    • -p: document packages (if found)
    • -r: recursive (enter subfolders)
    • -s: single file (everything in one rst file)

Examples:

bazelreport /bazel/workspace_1
-> creates rst file if bzw files are found

bazelreport -r -s /bazel/workspace_1/package/*_python.bzl
-> documents all _python.bzl files find in subfolder of .../package/ in a single rst file
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

No branches or pull requests

1 participant