Add todo to bash completions
This commit is contained in:
		
							parent
							
								
									5979ea58a2
								
							
						
					
					
						commit
						1ee91301f4
					
				| 
						 | 
					@ -15,6 +15,7 @@ func WriteBashCompletions(out io.Writer, rootCmd *Command) error {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TODO: Add --option|--other-option...) to return nothing for options that require a value
 | 
					// TODO: Add --option|--other-option...) to return nothing for options that require a value
 | 
				
			||||||
 | 
					// TODO: Add descriptions to completions using https://stackoverflow.com/a/10130007
 | 
				
			||||||
var bashTpl = template.Must(template.New("bash").Funcs(tplFuncs).Parse(`
 | 
					var bashTpl = template.Must(template.New("bash").Funcs(tplFuncs).Parse(`
 | 
				
			||||||
{{- $rootCmd := .RootCmd -}}
 | 
					{{- $rootCmd := .RootCmd -}}
 | 
				
			||||||
{{- $progName := $rootCmd.Name -}}
 | 
					{{- $progName := $rootCmd.Name -}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue