mirror of
https://github.com/kataras/iris.git
synced 2025-12-31 00:37:05 +00:00
Fix go1.6 issue https://github.com/kataras/iris/issues/378
This commit is contained in:
8
ssh.go
8
ssh.go
@@ -219,13 +219,13 @@ var (
|
||||
SSHBanner = banner
|
||||
|
||||
helpMessage = SSHBanner + `
|
||||
|
||||
|
||||
COMMANDS:
|
||||
{{ range $index, $cmd := .Commands }}
|
||||
{{- $cmd.Name }} - {{ $cmd.Description }}
|
||||
{{- $cmd.Name }} | {{ $cmd.Description }}
|
||||
{{ end }}
|
||||
USAGE:
|
||||
ssh myusername@{{ .Hostname}} -p {{ .Port }} {{ first .Commands}}
|
||||
ssh myusername@{{ .Hostname}} {{ .PortDeclaration }} {{ first .Commands}}
|
||||
or just write the command below
|
||||
VERSION:
|
||||
{{ .Version }}
|
||||
@@ -482,7 +482,7 @@ func (s *SSHServer) writeHelp(wr io.Writer) {
|
||||
hostname := parseHostname(s.Host)
|
||||
|
||||
data := map[string]interface{}{
|
||||
"Hostname": hostname, "Port": port,
|
||||
"Hostname": hostname, "PortDeclaration": "-p " + strconv.Itoa(port),
|
||||
"Commands": append(s.Commands, standardCommands...),
|
||||
"Version": Version,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user