Grzegorz Dlugoszewski
f0365087ce
Remove the awkward "built at" section from --version
2025-08-23 22:36:03 +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
d964158bf7
Fix problems with loading values from gitconfig
2020-06-30 21:25:42 +02:00
Grzegorz Dlugoszewski
b8606568ef
Expand home dir path after reading config
2020-06-30 11:22:55 +02:00
Grzegorz Dlugoszewski
28b24ec5ce
Add a run package responsible for running git commands
...
- Add better git error handling
- Move repo helpers into a separate package
2020-06-26 13:36:58 +02:00
Grzegorz Dlugoszewski
8c132cdafa
Remove gogit and major refactoring ( #2 )
...
* Fix typo in readme
* Reimplement all git methods without go-git
* Rename repo pkg to git, add gitconfig methods
* Improve tests for configuration reading
* Rename package file to io and move RepoFinder there
* Refactor printers
- Remove smart printer
- Decouple printers from git repos with interfaces
- Update printer functions
- Remove unnecessary flags
- Add better remote URL detection
* Update readme and go.mod
* Add author to git commit in tests
Otherwise tests will fail in CI.
* Install git before running tests and don't use cgo
* Add better error message, revert installing git
* Ensure commit message is in quotes
* Set up git config before running tests
2020-06-24 23:54:44 +02:00
Grzegorz Dlugoszewski
4868713746
Update help commands and errors messages
2020-06-19 16:39:26 +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
da8f0931d0
Add a "dump" output option to git-list
...
It prints a list of all repos URL and is supposed to be consumed by `git get --dump` option.
2020-06-18 11:05:39 +02:00
Grzegorz Dlugoszewski
5835777850
Split get and list commands into separate binaries
2020-06-12 21:36:31 +02:00
Grzegorz Dlugoszewski
c71ebea2d4
Move the version metadata to cfg packageThis way it can be used by multiple binaries.
2020-06-12 21:09:32 +02:00
Grzegorz Dlugoszewski
33ca245d3a
Refactor pkg directory back
2020-06-12 20:19:05 +02:00