gcli で作ったものを動かしたら・・・
DEPRECATED Action signature. Must be `cli.ActionFunc`. This is an error in the application. Please contact the distributor of this application if this is not you. See https://github.com/urfave/cli/blob/master/CHANGELOG.md#deprecated-cli-app-action-signature
というメッセージが出た 自分が定義したコマンドの戻りの型定義をしてやればOKだった
func CmdInsert(c *cli.Context) { }
↓
func CmdInsert(c *cli.Context) error { return nil }
- 作者: Mat Ryer,鵜飼文敏,牧野聡
- 出版社/メーカー: オライリージャパン
- 発売日: 2016/01/22
- メディア: 大型本
- この商品を含むブログ (2件) を見る