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 # Output of the go coverage tool, specifically when used with LiteIDE
*.out *.out
downloads downloads
go java
versions versions
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/

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

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

Loading…
Cancel
Save