main
15128022404 2 years ago
parent f17742409a
commit f1c565335d

2
.gitignore vendored

@ -11,7 +11,7 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
downloads
go
java
versions
# Dependency directories (remove the comment below to include it)
# vendor/

@ -64,8 +64,8 @@ func init() {
// Run 运行g命令行
func Run() {
app := cli.NewApp()
app.Name = "g"
app.Usage = "Golang Version Manager"
app.Name = "j"
app.Usage = "JAVA Version Manager"
app.Version = build.Version()
app.Copyright = fmt.Sprintf("Copyright (c) 2019-%d, voidint. All rights reserved.", time.Now().Year())
app.Authors = []*cli.Author{
@ -74,7 +74,7 @@ func Run() {
app.Before = func(ctx *cli.Context) (err error) {
ghomeDir = ghome()
goroot = filepath.Join(ghomeDir, "go")
goroot = filepath.Join(ghomeDir, "java")
downloadsDir = filepath.Join(ghomeDir, "downloads")
if err = os.MkdirAll(downloadsDir, 0755); err != nil {
return err

@ -7,13 +7,13 @@ var (
{
Name: "ls",
Usage: "List installed versions",
UsageText: "g ls",
UsageText: "j ls",
Action: list,
},
{
Name: "use",
Usage: "Switch to specified version",
UsageText: "g use <version>",
UsageText: "j use <version>",
Action: use,
},
}

Loading…
Cancel
Save