Skip to content

Commit

Permalink
Merge pull request #291 from moul/dev/moul/info-version
Browse files Browse the repository at this point in the history
feat: print version in 'assh info'
  • Loading branch information
moul authored Sep 6, 2018
2 parents 6bd2bf8 + 9e6090c commit d9f8822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ Host *
* Remove invalid warn ([#283](https://github.com/moul/advanced-ssh-config/issues/283))
* Avoid double-connection when having chained gateways ([#285](https://github.com/moul/advanced-ssh-config/pull/285)) by [@4wrxb](https://github.com/4wrxb)
* Add `GatewayConnectTimeout` option ([#289](https://github.com/moul/advanced-ssh-config/issues/289))
* Print version in `assh info`

[Full commits list](https://github.com/moul/advanced-ssh-config/compare/v2.8.0...master)

Expand Down
2 changes: 2 additions & 0 deletions pkg/commands/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/moul/advanced-ssh-config/pkg/config"
"github.com/moul/advanced-ssh-config/pkg/logger"
"github.com/moul/advanced-ssh-config/pkg/utils"
"github.com/moul/advanced-ssh-config/pkg/version"
)

func cmdInfo(c *cli.Context) error {
Expand All @@ -29,6 +30,7 @@ func cmdInfo(c *cli.Context) error {
fmt.Printf("CLI Path: %s\n", cliPath)
fmt.Printf("Go version: %s\n", runtime.Version())
fmt.Printf("OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
fmt.Printf("Version: %s (%s)\n", version.VERSION, version.GITCOMMIT)
fmt.Println("")
fmt.Printf("RC files:\n")
homeDir := utils.GetHomeDir()
Expand Down

0 comments on commit d9f8822

Please sign in to comment.