mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-22 23:52:12 +03:00
Merge pull request #84 from empathetic-alligator/version_make
Added /version command.
This commit is contained in:
commit
cfa97df306
3 files changed
+4
-1
No files matched your search
@@ -8,7 +8,7 @@ all: $(BINARY)
|
||||
go build ./...
|
||||
|
||||
$(BINARY): **/*.go *.go
|
||||
go build .
|
||||
go build -ldflags "-X main.buildCommit `git rev-parse --short HEAD`" .
|
||||
|
||||
deps:
|
||||
go get .
|
||||
|
||||
@@ -431,6 +431,8 @@ func (c *Client) handleShell(channel ssh.Channel) {
|
||||
}
|
||||
}()
|
||||
}
|
||||
case "/version":
|
||||
c.SysMsg("Version " + buildCommit)
|
||||
|
||||
default:
|
||||
c.SysMsg("Invalid command: %s", line)
|
||||
|
||||
Reference in new issue
Block a user