6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 15:39:46 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Grzegorz Dlugoszewski
0bf2765349 Fix issues found by wsl linter 2025-08-24 14:54:02 +02:00
Grzegorz Dlugoszewski
09da7ea05b Fix cyclop issues in url.go 2025-08-24 14:35:26 +02:00
Grzegorz Dlugoszewski
31fa76afb8 Fix failing windows tests
Fix incorrect filepath.join usage in building filepaths from URL
2025-08-11 23:34:05 +02:00
Grzegorz Dlugoszewski
7ecef9c85d Replace deprecated modules
Replace go-homedir with builtin os.UserHomeDir and pkg/errors with
builtin errors
2025-08-11 20:43:49 +02:00
Grzegorz Dlugoszewski
0d797d625a Make the URL scheme default to ssh instead of https and make it configurable 2020-09-02 03:14:01 +02:00
Grzegorz Dlugoszewski
0064fc3b8e Add --skip-host flag to get command (#7)
When set, git-get won't create a directory for the repo host.
So instead of `<root>/<host>/<user>/<repo>`, a repo will be cloned into `<root>/<user>/<repo>`.
It's useful if all repos some from the same host and that additional folder feels redundant.
2020-07-07 18:35:30 +02:00
Grzegorz Dlugoszewski
235ea0d811 Replace path.Join with filepath.Join
Path is for URLs, filepath is for os paths. This solves the problem with wrong repo root on windows.
2020-06-30 11:25:49 +02:00
Grzegorz Dlugoszewski
4868713746 Update help commands and errors messages 2020-06-19 16:39:26 +02:00
Grzegorz Dlugoszewski
7ba950a6a0 Refactor cloning dump file 2020-06-18 17:10:14 +02:00
Grzegorz Dlugoszewski
3e9c7644c6 Rename bundle to dump 2020-06-18 15:47:15 +02:00
Grzegorz Dlugoszewski
5a588f22d1 Refactor implementations of get and list commands
- Simplify the main functions by moving actual implementation to "pkg" package
- Remove the "path" package and move files into the root "pkg" package
- Replace viper with explicit Cfg structs
2020-06-18 15:44:10 +02:00
Grzegorz Dlugoszewski
f3d0df1bfd Refactor packages structure
- Isolate files into their own packages
- Create new printer package and interface
- Refactor Repo stuct to embed the go-git *Repository directly
- Simplify cmd package
2020-06-08 12:07:03 +02:00
Grzegorz Dlugoszewski
f2d8496136 Refactor config provider using viper 2020-06-04 11:38:01 +02:00
Grzegorz Dlugoszewski
7e42b1e3e9 Use the configured default host when host is empty after parsing the URL 2020-05-30 12:45:07 +02:00
Grzegorz Dlugoszewski
1bc3928cf5 Finish refactoring by replacing old pkg with new one 2020-05-28 16:34:44 +02:00
Grzegorz Dlugoszewski
b94e655d4a Refactor Clone method to use go-git 2020-05-27 12:54:49 +02:00
Grzegorz Dlugoszewski
7ab4489dfe Add ssh credentials callback when cloning via ssh protocol 2020-05-26 10:34:36 +02:00
Grzegorz Dlugoszewski
a530b1506c Refactor URL parsing so it's not being called twice 2020-05-22 15:53:44 +02:00
Grzegorz Dlugoszewski
2b622b99fe Parse URL and create a repo dir inside CloneRepo function 2020-05-22 12:21:19 +02:00
Grzegorz Dlugoszewski
02e32a5543 Handle scp-like syntax in URL parsing, add more tests 2020-05-22 08:52:08 +02:00
Grzegorz Dlugoszewski
bb3a243829 Add URL parsing function and its unit tests 2020-05-21 22:48:28 +02:00