Skip to content

Commit

Permalink
Dependency updates, modernisation
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Jul 11, 2023
1 parent 4073d34 commit 272abf2
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 98 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ git-mirror
Mirror a specific repository from one remote to another.

```
usage: git-mirror --src=SRC --dst=DST [<flags>]
Usage: git-mirror --src=STRING --dst=STRING
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-s, --src=SRC Source repo URL
-d, --dst=DST Destination repo URL
-t, --src-token=SRC-TOKEN Source repo token/password
-e, --dst-token=DST-TOKEN Destination repo token/password
-u, --src-user=SRC-USER Source repo user
-v, --dst-user=DST-USER Destination repo user
--verbose Enable verbose output
-h, --help Show context-sensitive help.
-s, --src=STRING Source repo URL ($SRC_URL)
-d, --dst=STRING Destination repo URL ($DST_URL)
-t, --src-token=STRING Source repo token/password ($SRC_TOKEN)
-e, --dst-token=STRING Destination repo token/password ($DST_TOKEN)
-u, --src-user=STRING Source repo user ($SRC_USER)
-v, --dst-user=STRING Destination repo user ($DST_USER)
--verbose Enable verbose output ($VERBOSE)
```
35 changes: 20 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
module github.com/kastelo/git-mirror
module kastelo.dev/git-mirror

go 1.20

require (
github.com/alecthomas/kingpin v2.2.6+incompatible
gopkg.in/src-d/go-git.v4 v4.13.1
github.com/alecthomas/kong v0.8.0
github.com/go-git/go-git/v5 v5.7.0
)

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.4.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/xanzy/ssh-agent v0.2.1 // indirect
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 // indirect
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/skeema/knownhosts v1.1.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.10.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
Loading

0 comments on commit 272abf2

Please sign in to comment.