Lines Matching +refs:completion +refs:func +refs:t

24   * [Bash Completion](#bash-completion)
25 + [Default auto-completion](#default-auto-completion)
26 + [Custom auto-completion](#custom-auto-completion)
68 func main() {
90 func main() {
94 Action: func(c *cli.Context) error {
133 func main() {
137 Action: func(c *cli.Context) error {
198 func main() {
200 Action: func(c *cli.Context) error {
231 func main() {
240 Action: func(c *cli.Context) error {
278 func main() {
290 Action: func(c *cli.Context) error {
334 func main() {
380 func main() {
426 func main() {
446 Action: func(c *cli.Context) error {
454 Action: func(c *cli.Context) error {
496 func main() {
533 func main() {
571 func main() {
644 func main() {
651 Action: func(c *cli.Context) error {
682 func main() {
694 app.Action = func(c *cli.Context) error {
738 func main() {
791 func main() {
798 Action: func(c *cli.Context) error {
807 Action: func(c *cli.Context) error {
814 Aliases: []string{"t"},
820 Action: func(c *cli.Context) error {
828 Action: func(c *cli.Context) error {
863 func main() {
917 func main() {
925 Action: func(ctx *cli.Context) error {
968 func main() {
980 Action: func(c *cli.Context) error {
1012 You can enable completion commands by setting the `EnableBashCompletion`
1013 flag on the `App` object to `true`. By default, this setting will allow auto-completion
1014 for an app's subcommands, but you can write your own completion methods for
1017 #### Default auto-completion
1027 func main() {
1035 Action: func(c *cli.Context) error {
1044 Action: func(c *cli.Context) error {
1051 Aliases: []string{"t"},
1057 Action: func(c *cli.Context) error {
1065 Action: func(c *cli.Context) error {
1081 #### Custom auto-completion
1083 "args": ["complete", "--generate-bash-completion"],
1097 func main() {
1107 Action: func(c *cli.Context) error {
1111 BashComplete: func(c *cli.Context) {
1116 for _, t := range tasks {
1117 fmt.Println(t)
1134 To enable auto-completion for the current shell session, a bash script,
1144 Auto-completion is now enabled for the current shell, but will not persist into a new shell.
1150 automatically install it there if you are distributing a package). Don't forget
1151 to source the file or restart your shell to activate the auto-completion.
1166 Keep in mind that if they are enabling auto-completion for more than one program,
1179 The default shell completion flag (`--generate-bash-completion`) is defined as
1183 "args": ["--generate-bash-completion"],
1196 func main() {
1213 Auto-completion for ZSH is also supported using the `autocomplete/zsh_autocomplete`
1217 configuration file (usually `.zshrc`) will allow the auto-completion to persist across new shells:
1230 Auto-completion for PowerShell is also supported using the `autocomplete/powershell_autocomplete.ps…
1257 is possible by assigning a compatible func to the `cli.HelpPrinter` variable,
1274 func main() {
1294 {{range .Commands}}{{if not .HideHelp}} {{join .Names ", "}}{{ "\t"}}{{.Usage}}{{ "\n" }}{{end}}{…
1306 // EXAMPLE: Replace the `HelpPrinter` func
1307 cli.HelpPrinter = func(w io.Writer, templ string, data interface{}) {
1331 func main() {
1367 func main() {
1402 func main() {
1403 cli.VersionPrinter = func(c *cli.Context) {
1434 func main() {
1439 Action: func(c *cli.Context) error {
1481 func init() {
1489 cli.HelpPrinter = func(w io.Writer, templ string, data interface{}) {
1492 cli.VersionPrinter = func(c *cli.Context) {
1495 cli.OsExiter = func(c int) {
1499 cli.FlagStringer = func(fl cli.Flag) string {
1500 return fmt.Sprintf("\t\t%s", fl.Names()[0])
1506 func (w *hexWriter) Write(p []byte) (int, error) {
1519 func (g *genericType) Set(value string) error {
1524 func (g *genericType) String() string {
1528 func main() {
1566 BashComplete: func(c *cli.Context) {
1569 Before: func(c *cli.Context) error {
1573 After: func(c *cli.Context) error {
1577 Action: func(c *cli.Context) error {
1588 OnUsageError: func(c *cli.Context, err error, isSubcommand bool) error {
1612 BashComplete: func(c *cli.Context) {
1615 Before: func(c *cli.Context) error {
1619 After: func(c *cli.Context) error {
1623 CommandNotFound: func(c *cli.Context, command string) {
1626 OnUsageError: func(c *cli.Context, err error, isSubcommand bool) error {
1634 Action: func(c *cli.Context) error {
1710 func wopAction(c *cli.Context) error {