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

Add completion support for fish #2025

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

sayboras
Copy link
Contributor

@sayboras sayboras commented Apr 11, 2020

Description

Fixes #1496

asciicast

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the site/content directory)
  • Manually tested
  • Added labels for change area (e.g. area/nodegroup), target version (e.g. version/0.12.0) and kind (e.g. kind/improvement)
  • Make sure the title of the PR is a good description that can go into the release notes

@sayboras sayboras changed the title Add fish completion support Add completion support for fish Apr 11, 2020
@@ -37,7 +37,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/riywo/loginshell v0.0.0-20190610082906-2ed199a032f6
github.com/spf13/afero v1.2.2
github.com/spf13/cobra v0.0.6
github.com/spf13/cobra v1.0.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -26,7 +24,7 @@ If you are stuck on Bash 3 (macOS) use
source /dev/stdin <<<"$(eksctl completion bash)"
`,
RunE: func(cmd *cobra.Command, args []string) error {
return rootCmd.GenBashCompletion(os.Stdout)
return rootCmd.GenBashCompletion(cmd.OutOrStdout())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use output from cmd for testability

@sayboras sayboras marked this pull request as ready for review April 11, 2020 02:08
@sayboras sayboras force-pushed the feature/fish-completion branch 5 times, most recently from bebd5db to 41bbd5d Compare April 15, 2020 10:25
Add missing unit test for completion CLI
Update shell installation docs
@sayboras
Copy link
Contributor Author

@martina-if @cPu1 your review is highly appreciated 👍

@martina-if martina-if merged commit 32b4329 into eksctl-io:master Apr 16, 2020
@sayboras sayboras deleted the feature/fish-completion branch April 16, 2020 08:39
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.

Support fish on eksctl completion
2 participants