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

fix(core): fix autocomplete edge cases #811

Merged
merged 6 commits into from
Apr 23, 2020
Merged

fix(core): fix autocomplete edge cases #811

merged 6 commits into from
Apr 23, 2020

Conversation

Sh4d1
Copy link
Contributor

@Sh4d1 Sh4d1 commented Mar 26, 2020

Fixes #810

  • a test is removed since it's never used in real world: autocompletion is only called once the command in typed and a space is added

Signed-off-by: Patrik Cyvoct [email protected]

@jerome-quere
Copy link
Contributor

Instead of replacing hardcoded scw by os.Args[0] it could be a better idea to make BinaryName a parameter in the BootstrapConfig this config could be accessible through context where needed

internal/core/autocomplete.go Outdated Show resolved Hide resolved
Sh4d1 and others added 5 commits April 22, 2020 19:28
Signed-off-by: Patrik Cyvoct <[email protected]>
Signed-off-by: Patrik Cyvoct <[email protected]>
Signed-off-by: Patrik Cyvoct <[email protected]>
Copy link
Contributor

@jerome-quere jerome-quere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sh4d1 Sh4d1 merged commit 8686ed2 into scaleway:v2 Apr 23, 2020
clement-gilbert pushed a commit to clement-gilbert/scaleway-cli that referenced this pull request Mar 3, 2022
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 this pull request may close these issues.

Autocomplete not working when using in shell functions or different binary name
2 participants