Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 91ee7786
authored
Aug 17, 2017
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show commit ID on version
1 parent
4fd3ac37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
Makefile
main.go
version.go
Makefile
View file @
91ee778
OUTPUT_DIR
=
./builds
OUTPUT_DIR
=
./builds
GIT_COMMIT
=
`
git rev-parse HEAD
`
GIT_COMMIT
=
`
git rev-parse HEAD | cut -c1-10
`
BUILD_OPTIONS
=
-ldflags
"-X main.CommitID=
$(GIT_COMMIT)
"
gotty
:
server/asset.go main.go server/*.go webtty/*.go backend/*.go
gotty
:
server/asset.go main.go server/*.go webtty/*.go backend/*.go
Makefile
godep go build
godep go build
${
BUILD_OPTIONS
}
asset
:
server/asset.go
asset
:
server/asset.go
...
...
main.go
View file @
91ee778
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
func
main
()
{
func
main
()
{
app
:=
cli
.
NewApp
()
app
:=
cli
.
NewApp
()
app
.
Name
=
"gotty"
app
.
Name
=
"gotty"
app
.
Version
=
Version
app
.
Version
=
Version
+
"+"
+
CommitID
app
.
Usage
=
"Share your terminal as a web application"
app
.
Usage
=
"Share your terminal as a web application"
app
.
HideHelp
=
true
app
.
HideHelp
=
true
cli
.
AppHelpTemplate
=
helpTemplate
cli
.
AppHelpTemplate
=
helpTemplate
...
...
version.go
View file @
91ee778
package
main
package
main
var
Version
=
"2.0.0-alpha"
var
Version
=
"2.0.0-alpha"
var
CommitID
=
"unknown_commit"
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment