Skip to content

bash completion contribution #225

Description

@AvianY

I made a bash script, which adds completion to the volt program.

in general, the script should be put in the $HOME/.bash_completion.d/ directory and sourced from within
the $HOME/.bashrc

For now, everything expected to work, WORKS.
That means:

  • Completion of all the subcommands ( profile, migrate, profile add ...)
  • Completion of fixed arguments ( migrates arguments )
  • Completion of dynamic arguments
    so, volt profile add <TAB> will complete the profile,
    and the volt profile add default <TAB> will complete an installed plugin, not added to default
    and so on for all the other commands. For now the script is limited to plugins prefixed with github.com and
    they are completed without the prefix.
    volt.zip

Activity

  1. tyru commented on Apr 6, 2018

    @tyru
    Member

    Wow, great! :)
    I've tweaked the script in #226, would you see if there are any problems?

  2. AvianY commented on Apr 6, 2018

    @AvianY
    ContributorAuthor

    Yes, I like the end script. I think some edge cases are still not taken care of, but I could fix those soon

  3. tyru commented on Apr 6, 2018

    @tyru
    Member

    @AvianY Merged. Thanks!

    (I'll create auto-generation scripts of bash/zsh completion functions in the future #199)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions