Skip to content
Snippets Groups Projects

feat(clap_complete): add completion subcommand

Merged Paco Velobs requested to merge pacovelobs-add-clap_complete-through-subcommand into master
All threads resolved!

Add clap_complete feature to duniter.

It takes the form of a new subcommand namely completion as follow:

USAGE:
    duniter completion --generator <GENERATOR>

OPTIONS:
    -g, --generator <GENERATOR>    [possible values: bash, elvish, fish, powershell, zsh]
    -h, --help                     Print help information
    -V, --version                  Print version information

This merge request is related to #37 (closed).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Paco Velobs added 16 commits

    added 16 commits

    Compare with previous version

  • Paco Velobs added 1 commit

    added 1 commit

    • 5056adda - feat(clap_complete): add completion subcommand

    Compare with previous version

  • Éloïs approved this merge request

    approved this merge request

  • Éloïs resolved all threads

    resolved all threads

  • Éloïs requested review from @tuxmain and removed review request for @librelois

    requested review from @tuxmain and removed review request for @librelois

  • @PacoVelobs looks good to me, thanks for your contribution :smile:

    cc @tuxmain for a second review

    Edited by Éloïs
  • Maybe indicate how to use this? The command just outputs a (very) long script I don't know what to do with.

  • @PacoVelobs I agree with @tuxmain , can you add a basic usage example please?

  • Paco Velobs added 2 commits

    added 2 commits

    • ff8d0af3 - 1 commit from branch master
    • e7d81947 - feat(clap_complete): add completion subcommand

    Compare with previous version

  • Author Reporter

    I added some more usage information.

    Unfortunately, I only ever used bash so I can only talk about what I know. I remember reading about zsh and its compinit built-in function but I'd rather not write some false information about it.

    The shell lines of the documentation have been tested.

  • Paco Velobs added 1 commit

    added 1 commit

    • 9729a2a9 - feat(clap_complete): add completion subcommand

    Compare with previous version

  • Éloïs added 4 commits

    added 4 commits

    Compare with previous version

  • Éloïs enabled an automatic merge when the pipeline for 5b89ed8f succeeds

    enabled an automatic merge when the pipeline for 5b89ed8f succeeds

  • Éloïs canceled the automatic merge

    canceled the automatic merge

  • Éloïs resolved all threads

    resolved all threads

  • merged

  • Please register or sign in to reply
    Loading