mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
add more package support
This commit is contained in:
parent
74f0ac5950
commit
09a90a322a
2 changed files with 85 additions and 34 deletions
8
main.go
8
main.go
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var version string
|
||||
var Version string
|
||||
var codePhrase string
|
||||
|
||||
var cr *croc.Croc
|
||||
|
@ -25,11 +25,11 @@ var cr *croc.Croc
|
|||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "croc"
|
||||
if version == "" {
|
||||
version = "dev"
|
||||
if Version == "" {
|
||||
Version = "dev"
|
||||
}
|
||||
|
||||
app.Version = version
|
||||
app.Version = Version
|
||||
app.Compiled = time.Now()
|
||||
app.Usage = "easily and securely transfer stuff from one computer to another"
|
||||
app.UsageText = "croc allows any two computers to directly and securely transfer files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue