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

tab completion #3

Open
mandric opened this issue Dec 4, 2023 · 4 comments
Open

tab completion #3

mandric opened this issue Dec 4, 2023 · 4 comments

Comments

@mandric
Copy link

mandric commented Dec 4, 2023

Have you thought about adding tab completion here, so ./do.sh foo<tab><tab> would give you a list of functions that begin with "foo"?

Basically add some conventions so it behaves similar to awscli?

@Vad1mo
Copy link
Member

Vad1mo commented Dec 4, 2023

Would make sense, open to accept PRs

@mandric
Copy link
Author

mandric commented Dec 4, 2023

Also are you trying to keep do.sh posix compliant? I noticed reference to sh in the shebang line and use of compgen which is bash specific or is that an accepted posix proposal? But I see no docs talking about posix. Would it be ok to use bash builtins for this? Do you want to have a fallback for posix shells?

@Vad1mo
Copy link
Member

Vad1mo commented Dec 4, 2023

I am not trying to be fully POSIX compliant but rather KSH, so that do.sh can run on alpine or most commonly uses minimal shells.

As I remember, there are some Bash forks of this repo. Check them out.

@mandric
Copy link
Author

mandric commented Dec 26, 2023

WIP: mandric#1

No completion code yet, starting with some tests.

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

No branches or pull requests

2 participants