From f1c565335d1dc8f0c7bafd9b1e7af3958cf8c454 Mon Sep 17 00:00:00 2001 From: 15128022404 <1421485150@qq.com> Date: Sun, 26 Mar 2023 23:01:35 +0800 Subject: [PATCH] init --- .gitignore | 2 +- cli/cli.go | 6 +++--- cli/commands.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4ac68d8..6bb9924 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/cli/cli.go b/cli/cli.go index 723f71d..e528710 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -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 diff --git a/cli/commands.go b/cli/commands.go index 6c6227a..b539fce 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -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 ", + UsageText: "j use ", Action: use, }, }