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

clab and shell completion #2358

Open
jenslink opened this issue Dec 23, 2024 · 2 comments · May be fixed by #2388
Open

clab and shell completion #2358

jenslink opened this issue Dec 23, 2024 · 2 comments · May be fixed by #2388

Comments

@jenslink
Copy link
Contributor

Containerlab has the function to create shell completion but only for the containerlab binary.
/usr/bin/clab is a link to containerlab (at least on my Debian based setup) and it would be relay nice to have shell completion for clab as well.

As a workaround, just replacing containerlab with clab in the output of containerlab completion seems to do the trick.

@jenslink
Copy link
Contributor Author

And maybe the usage message should also be changed:

_root@clab ~ # clab
deploy container based lab environments with a user-defined interconnections

Usage:
containerlab [command]_

@hellt hellt linked a pull request Jan 11, 2025 that will close this issue
@hellt
Copy link
Member

hellt commented Jan 11, 2025

Hi @jenslink

I have added more details how to adapt completion scripts for aliases in #2388. Give it a go

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

Successfully merging a pull request may close this issue.

2 participants