File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 77
88 "github.com/xwjdsh/manssh"
99 "github.com/xwjdsh/manssh/utils"
10+ "github.com/StephenBrown2/ssh_config"
1011
1112 "github.com/fatih/color"
1213 "github.com/urfave/cli"
@@ -68,13 +69,15 @@ func printHost(showPath bool, host *manssh.HostConfig) {
6869 if value == "" {
6970 continue
7071 }
72+ key = ssh_config .GetCanonicalCase (key )
7173 color .Cyan ("\t %s = %s\n " , key , value )
7274 }
7375 for _ , key := range utils .SortKeys (host .ImplicitConfig ) {
7476 value := host .ImplicitConfig [key ]
7577 if value == "" {
7678 continue
7779 }
80+ key = ssh_config .GetCanonicalCase (key )
7881 fmt .Printf ("\t %s = %s\n " , key , value )
7982 }
8083 fmt .Println ()
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ module github.com/xwjdsh/manssh
33go 1.17
44
55require (
6+ github.com/StephenBrown2/ssh_config v0.0.0-20220210203636-036f61b9d304
67 github.com/fatih/color v1.6.0
78 github.com/stretchr/testify v1.2.2
89 github.com/urfave/cli v1.20.0
Original file line number Diff line number Diff line change 1+ github.com/StephenBrown2/ssh_config v0.0.0-20220210203636-036f61b9d304 h1:8hAMVQVab9hnIUPWdC9EpjQ4hQZ2cFA1IWTcVK6OFlc =
2+ github.com/StephenBrown2/ssh_config v0.0.0-20220210203636-036f61b9d304 /go.mod h1:+xBtisLP9jShhZEbtomFsY6e/rvCwloqPf1qbA1HCaU =
13github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
24github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
35github.com/fatih/color v1.6.0 h1:66qjqZk8kalYAvDRtM1AdAJQI0tj4Wrue3Eq3B3pmFU =
You can’t perform that action at this time.
0 commit comments