Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit d1bc7d9

Browse files
authored
[get] add aliases (dl & download)
1 parent 6e26ab6 commit d1bc7d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fgit.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func main() {
147147
}
148148
}
149149

150-
if os.Args[1] == "get" {
150+
if os.Args[1] == "get" || os.Args[1] == "dl" || os.Args[1] == "download" {
151151
switch len(os.Args) {
152152
default:
153153
get("", "")
@@ -202,6 +202,9 @@ func get(url, fpath string) {
202202
" fgit [--help]\n" +
203203
" fgit get [URL<string>]\n" +
204204
" fgit get [URL<string>] [Path<string>]\n" +
205+
"ALIASES\n" +
206+
" fgit dl\n" +
207+
" fgit download\n" +
205208
"EXAMPLE\n" +
206209
" fgit get https://github.com/fastgitorg/fgit-go/archive/master.zip")
207210
os.Exit(0)

0 commit comments

Comments
 (0)