Grzegorz Dlugoszewski
0df82ba272
Update incorrect module name - Go requires a domain-based path for public modules
2025-08-25 20:26:07 +02:00
Grzegorz Dlugoszewski
aa1da8e3da
Refactor package print into out to fix failing predeclared linter
2025-08-24 18:20:18 +02:00
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
b2d1d773f7
Indicate if error occured during status loading and print the list of errors
2020-07-27 16:17:13 +02:00
Grzegorz Dlugoszewski
3aef50a4d0
Move status loader into the git package
...
- Loading status belongs to git domain so it makes more sense for it to
be in git package.
- It also makes the `list` file simpler.
- Because status loader is now part of the RepoFinder, the ugly Repo interface is no longer necessary.
2020-07-27 11:15:35 +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
132b3ef13d
Fix missing fetch call
2020-07-02 09:39:35 +02:00
Grzegorz Dlugoszewski
539c3beb90
Load repos status simultaneously with goroutines
...
Also, refactor printer interface.
2020-06-25 12:53:27 +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
32211e6408
Cleanup the print package
...
- Use strings.Builder instead of concatenation
- Move smart tree to a separate file
- Add missing docstrings
2020-06-18 19:20:03 +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
29c21cb78d
Improve the implementation of the smart tree printer
...
It now correctly indents lines with branches status
2020-06-06 16:56:42 +02:00
Grzegorz Dlugoszewski
13c03bc2ef
Add new tree implementation and remove treeprint dependency
2020-06-06 10:00:11 +02:00
Grzegorz Dlugoszewski
f2d8496136
Refactor config provider using viper
2020-06-04 11:38:01 +02:00
Grzegorz Dlugoszewski
142fdf1844
Add printing status of multiple branches
2020-06-03 16:21:01 +02:00
Grzegorz Dlugoszewski
64dfea5a7f
Add a list flag and basic rendering of repos status
2020-06-03 15:59:51 +02:00
Grzegorz Dlugoszewski
b7bd30c960
Check if repos root exists and is not empty before opening repos
2020-06-03 13:25:01 +02:00
Grzegorz Dlugoszewski
8a79dcfd9f
Add checking what is the current branch and if HEAD is detached
2020-06-02 16:46:10 +02:00
Grzegorz Dlugoszewski
abf220355c
Add basic printing of all repos status
2020-06-02 12:40:22 +02:00