Exemplo n.º 1
0
func ScalingoAppComplete(c *cli.Context) {
	autocomplete.DisplayFlags(c.App.Flags)

	for _, command := range c.App.Commands {
		fmt.Fprintln(c.App.Writer, command.FullName())
	}
}
Exemplo n.º 2
0
Arquivo: main.go Projeto: yannski/cli
func ScalingoAppComplete(c *cli.Context) {

	autocomplete.DisplayFlags(c.App.Flags)

	for _, command := range c.App.Commands {
		for _, name := range command.Names() {
			fmt.Fprintln(c.App.Writer, name)
		}
	}
}