chore(completion): suggest languages
@@ -66,6 +66,11 @@ __kamel_dependency_type() {
esac
}
+__kamel_languages() {
+ local type_list="js groovy java xml"
+ COMPREPLY=( $( compgen -W "${type_list}" -- "$cur") )
+}
+
__kamel_kubectl_get_configmap() {
local template
local kubectl_out
@@ -183,6 +188,13 @@ func configureKnownBashCompletions(command *cobra.Command) {
cobra.BashCompCustom: {"__kamel_kubectl_get_user_integrationcontexts"},
},
)
+ configureBashAnnotationForFlag(
+ command,
+ "language",
+ map[string][]string{
+ cobra.BashCompCustom: {"__kamel_languages"},
+ },
+ )
}
func configureBashAnnotationForFlag(command *cobra.Command, flagName string, annotations map[string][]string) {
