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

Don't add a command for a heading that has no code blocks #65

Closed
jacobdeichert opened this issue Jun 27, 2020 · 0 comments · Fixed by #70
Closed

Don't add a command for a heading that has no code blocks #65

jacobdeichert opened this issue Jun 27, 2020 · 0 comments · Fixed by #70
Labels
bug Something isn't working

Comments

@jacobdeichert
Copy link
Owner

When a heading has no code blocks AND its child headings have no code blocks, then we shouldn't create a command for it.

Example:

# MY COMMANDS

## Docs

Just some documentation.

## cmd
~~~bash
echo something
~~~

Current Behaviour

mask -h

mask 0.8.0

USAGE:
    mask [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --maskfile <maskfile>    Path to a different maskfile you want to use

SUBCOMMANDS:
    Docs        
    cmd

Desired Behaviour

mask -h

mask 0.8.0

USAGE:
    mask [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --maskfile <maskfile>    Path to a different maskfile you want to use

SUBCOMMANDS:
    cmd
@jacobdeichert jacobdeichert added the bug Something isn't working label Jun 27, 2020
@jacobdeichert jacobdeichert changed the title Don't add a command for a heading tree that has no code blocks Don't add a command for a heading that has no code blocks Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant