go env -w GOPROXY=https://goproxy.cn,direct
# go env -w GOPROXY=https://proxy.golang.org,direct
# go env -w GOPROXY=https://goproxy.io,direct
# go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
# go env -w GOPROXY=https://mirrors.cloud.tencent.com/go,direct
go get -u github.com/urfave/cli/v2
go get -u github.com/xuxiaowei-com-cn/git-go@main
go get -u github.com/stretchr/testify/assert
mod
go mod tidy
go mod download
run
go run main.go
run help
Windows 环境为 %xxx%
Linux 环境为 $xxx
go run main.go --help
$ go run main.go --help
NAME:
maven-dependencies - 基于 Go 语言开发的 Maven 依赖 命令行工具
USAGE:
maven-dependencies [global options] command [command options]
VERSION:
dev
AUTHOR:
徐晓伟 <xuxiaowei@xuxiaowei.com.cn>
COMMANDS:
dependency Maven 依赖坐标
current Maven 当前坐标
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
COPYRIGHT:
徐晓伟工作室 <xuxiaowei@xuxiaowei.com.cn>
$ go run main.go dependency --help
NAME:
maven-dependencies dependency - Maven 依赖坐标
USAGE:
maven-dependencies dependency command [command options]
COMMANDS:
edit 修改 Maven 依赖坐标
help, h Shows a list of commands or help for one command
OPTIONS:
--file-path value File Path
--group-id value Maven groupId
--artifact-id value Maven artifactId
--help, -h show help
$ go run main.go dependency edit --help
NAME:
maven-dependencies dependency edit - 修改 Maven 依赖坐标
USAGE:
maven-dependencies dependency edit [command options] [arguments...]
OPTIONS:
--file-path value File Path
--group-id value Maven groupId
--artifact-id value Maven artifactId
--after-group-id value After Maven groupId
--after-artifact-id value After Maven artifactId
--after-version value After Maven version
--help, -h show help
$ go run main.go current --help
NAME:
maven-dependencies current - Maven 当前坐标
USAGE:
maven-dependencies current command [command options]
COMMANDS:
edit 修改 Maven 当前坐标
help, h Shows a list of commands or help for one command
OPTIONS:
--file-path value File Path
--after-group-id value After Maven groupId
--after-artifact-id value After Maven artifactId
--after-version value After Maven version
--help, -h show help
$ go run main.go current edit --help
NAME:
maven-dependencies current edit - 修改 Maven 当前坐标
USAGE:
maven-dependencies current edit [command options] [arguments...]
OPTIONS:
--file-path value File Path
--after-group-id value After Maven groupId
--after-artifact-id value After Maven artifactId
--after-version value After Maven version
--help, -h show help
maven-dependencies
Maven 依赖 脚手架
支持的系统
构建
本项目发布在 GitHub 进行构建,并使用构建后的程序将自己发布到各大代码托管平台,发布过程参见: GitHub Actions
下载
支持的功能
开发命令
get
mod
run
run help
test
build
Windows
Linux
LoongArch
Darwin