Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Generate completions for each multicall binary #216

Merged
merged 1 commit into from Nov 28, 2022

Commits on Nov 28, 2022

  1. Generate completions per subcommand

    We used to generate completions for the top-level command, but that's
    not correct in a multicall binary: It includes the subcommands as
    completable arguments, whereas we actually need to split completions per
    subcommand.
    
    Hence, iterate over the two relevant subcommands aka binary names, and
    separately generate the completion for each corresponding subcommand.
    
    This corrects completions for mdcat, and as a bonus we now also generate
    completions for mdless which we didn't have before.
    
    Closes GH-214
    swsnr committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    1c41114 View commit details
    Browse the repository at this point in the history