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

Improve developer experience: improved autocomplete with context aware options #103

Closed
7 tasks done
Richard87 opened this issue Aug 20, 2024 · 0 comments · Fixed by #107
Closed
7 tasks done

Improve developer experience: improved autocomplete with context aware options #103

Richard87 opened this issue Aug 20, 2024 · 0 comments · Fixed by #107
Assignees

Comments

@Richard87
Copy link
Contributor

Richard87 commented Aug 20, 2024

For example in rx get application --application f we could list available applications the user have access to

func init() {
	getCmd.AddCommand(getApplicationCmd)
	getApplicationCmd.Flags().StringP(flagnames.Application, "a", "", "Name of the application")
	getApplicationCmd.RegisterFlagCompletionFunc(flagnames.Application, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
		return []string{"foo", "bar", "baz"}, cobra.ShellCompDirectiveNoFileComp
	})
	setContextSpecificPersistentFlags(getApplicationCmd)
}

Just listing applications, environments, components, jobs, secrets and variables would make rx way nicer to use :)

DoD
Implement autocomplete for values for the following 6 properties:

  • applications
  • environments
  • components
  • secrets
  • variables
  • dns alias
  • jobs
@Richard87 Richard87 self-assigned this Sep 25, 2024
@Richard87 Richard87 linked a pull request Sep 26, 2024 that will close this issue
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