Grzegorz Dlugoszewski
f20ab7dea2
Fix issues found by err113 linter
2025-08-24 16:53:48 +02:00
Grzegorz Dlugoszewski
f60cfd1e40
Fix issues found by varnamelen linter
2025-08-24 15:44:22 +02:00
Grzegorz Dlugoszewski
0bf2765349
Fix issues found by wsl linter
2025-08-24 14:54:02 +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
8ab4681c26
Refactor repoFinder
...
- Remove io package and move finder to git package
- Move tempDir and writeFile into test package. They are only used for testing purposes anyway.
- Add a way to specify parent folder for tempDir. Useful for testing nested repos.
- Add new test repos with .git/config files
2020-07-08 14:37:29 +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
7b9e74f903
Skip cloning a repo if target path already exists when getting a dump file
2020-06-30 10:23:10 +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
de51c05158
Update readme, add some todos, add example svg
2020-06-19 13:31:01 +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