mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-14 16:17:17 +03:00
Merge pull request #84 from empathetic-alligator/version_make
Added /version command.
This commit is contained in:
commit
cfa97df306
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ all: $(BINARY)
|
|||||||
go build ./...
|
go build ./...
|
||||||
|
|
||||||
$(BINARY): **/*.go *.go
|
$(BINARY): **/*.go *.go
|
||||||
go build .
|
go build -ldflags "-X main.buildCommit `git rev-parse --short HEAD`" .
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
go get .
|
go get .
|
||||||
|
@ -431,6 +431,8 @@ func (c *Client) handleShell(channel ssh.Channel) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
case "/version":
|
||||||
|
c.SysMsg("Version " + buildCommit)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
c.SysMsg("Invalid command: %s", line)
|
c.SysMsg("Invalid command: %s", line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user