Skip to content

Commit 9120e07

Browse files
feat: add help-all command (#1606)
* feat: add help-all command * refactor: use the library * chore: update the library
1 parent ebff00f commit 9120e07

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ require (
1414
github.com/suzuki-shunsuke/go-ci-env/v3 v3.1.0
1515
github.com/suzuki-shunsuke/go-findconfig v1.2.0
1616
github.com/suzuki-shunsuke/logrus-error v0.1.4
17+
github.com/suzuki-shunsuke/urfave-cli-help-all v0.0.2
1718
github.com/urfave/cli/v2 v2.27.5
1819
golang.org/x/oauth2 v0.25.0
1920
gopkg.in/yaml.v3 v3.0.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ github.com/suzuki-shunsuke/go-findconfig v1.2.0 h1:PWHIyKZEsVmZVh6+K+rHVw0/XjTFm
7575
github.com/suzuki-shunsuke/go-findconfig v1.2.0/go.mod h1:lXzJUZQXrgsMmpHxXMVrWUAQpE4EopgDEJbwslvKbzs=
7676
github.com/suzuki-shunsuke/logrus-error v0.1.4 h1:nWo98uba1fANHdZ9Y5pJ2RKs/PpVjrLzRp5m+mRb9KE=
7777
github.com/suzuki-shunsuke/logrus-error v0.1.4/go.mod h1:WsVvvw6SKSt08/fB2qbnsKIMJA4K1MYCUprqsBJbMiM=
78+
github.com/suzuki-shunsuke/urfave-cli-help-all v0.0.2 h1:5MQhRCdZz4AbXxZOXjmMFK4PurBJ+h7emFrau9TZaRY=
79+
github.com/suzuki-shunsuke/urfave-cli-help-all v0.0.2/go.mod h1:sSi6xaUaHfaqu32ECLeyE7NTMv+ZM5dW0JikhllaalY=
7880
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
7981
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
8082
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=

pkg/cli/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cli
22

33
import (
4+
"github.com/suzuki-shunsuke/urfave-cli-help-all/helpall"
45
"github.com/urfave/cli/v2"
56
)
67

@@ -113,5 +114,6 @@ $ tfcmt [<global options>] apply -- terraform apply [<terraform apply options>]`
113114
},
114115
},
115116
}
117+
app.Commands = append(app.Commands, helpall.New(nil))
116118
return app
117119
}

0 commit comments

Comments
 (0)