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

Bash autocompletion #118

Closed
s-hemer opened this issue Jun 14, 2023 · 5 comments
Closed

Bash autocompletion #118

s-hemer opened this issue Jun 14, 2023 · 5 comments

Comments

@s-hemer
Copy link

s-hemer commented Jun 14, 2023

I started a bash-completion script for bmaptool. It is still a bit hacky not yet ready for a pull rq but what I'd like to know: where to put that file, packaging/, contrib/ ?

@dedekind
Copy link
Contributor

Hi, first quick question - why script instead of argcomplete module, which will automatically add all options and commands?

@s-hemer
Copy link
Author

s-hemer commented Jun 14, 2023

Good point. Indeed, that is potentially the better way to go when touching the Python scripts directly, yet I just wanted to add that functionality to my package system install, so I went the way with the completion script that I was more familiar with.

@dedekind
Copy link
Contributor

dedekind commented Jun 14, 2023

There are many examples googlable, but here is a project I currently actively maintain which uses argpcompete. Works well: https://github.com/intel/pepc . However, the project may be too complex to serve as good and clear example. But FWIW.

@s-hemer
Copy link
Author

s-hemer commented Aug 24, 2023

I am too busy with other things, yet if someone is interested: https://gist.github.com/s-hemer/760f13ced6f4f6d99b0cddde5757470f

@dedekind
Copy link
Contributor

dedekind commented Mar 6, 2024

Hello, the project was moved and now owned by a new team. Please, work with them. Check the README.md file. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants