Created
December 22, 2018 15:27
-
-
Save syossan27/02c20d25660123ac6b6c8221b96cae29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func makeApp() *cli.App { | |
app := cli.NewApp() | |
app.EnableBashCompletion = true | |
app.BashComplete = func(ctx *cli.Context) { | |
// 接続名を展開して出力 | |
conns := connection.Load() | |
for _, conn := range conns { | |
fmt.Println(conn.Name) | |
} | |
} | |
return app | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment