6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 17:24:49 +00:00
Commit Graph

121 Commits

Author SHA1 Message Date
Grzegorz Dlugoszewski
aee6d8209b Improve printing tree view
...by correctly indenting the branches list
2020-06-30 16:19:15 +02:00
Grzegorz Dlugoszewski
53c82514c7 Add .deb and .rpm files to goreleaser 2020-06-30 14:11:21 +02:00
Grzegorz Dlugoszewski
d0797ad9b7 Fix showing stdout of git commands
We need to capture also stderr because this is where eg, the progress of git clone is printed
2020-06-30 13:54:43 +02:00
Grzegorz Dlugoszewski
fe35a7e493 Update changelog v0.0.5 2020-06-30 11:42:19 +02:00
Grzegorz Dlugoszewski
29330d8af7 Add missing docstrings 2020-06-30 11:32:05 +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
b8606568ef Expand home dir path after reading config 2020-06-30 11:22:55 +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
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
7c5abae165 Remove verbose flags from git clone 2020-06-25 13:00:30 +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
da8849d7f5 Update dump tests to better follow table-driven pattern 2020-06-25 09:50:12 +02:00
Grzegorz Dlugoszewski
fe07ab3c8a Fix typos in comments 2020-06-25 00:00:09 +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
2ef739ea49 Update brew config to install both binaries v0.0.4 2020-06-19 21:10:42 +02:00
Grzegorz Dlugoszewski
180156861d Update changelog 2020-06-19 21:03:18 +02:00
Grzegorz Dlugoszewski
cfe968fc24 Add missing header to readme 2020-06-19 20:52:14 +02:00
Grzegorz Dlugoszewski
a7f849543b Add table of contents to readme 2020-06-19 20:49:11 +02:00
Grzegorz Dlugoszewski
ceafb97740 Add more documentation to readme 2020-06-19 20:30:04 +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
4fbdcde57b Fallback to default branch when cloning instead of parsing 2020-06-18 18:45:04 +02:00
Grzegorz Dlugoszewski
e800652a6e Implement ignoreExisting flag and set default branch also for dump cloning 2020-06-18 17:30:42 +02:00
Grzegorz Dlugoszewski
330cbf5840 Rename license file for consistency sake 2020-06-18 17:13:51 +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
8511cd6c97 Rename git package to repo package 2020-06-18 14:22:03 +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
edf60064a8 Don't include additional files into release archives and use zip for windows 2020-06-12 21:58:35 +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
Grzegorz Dlugoszewski
823a522a97 Add a --bundle flag accepting a bundle file of repos to clone
Also refactor CloneRepo to accept CloneOpts as agruments - makes it cleaner and easier to test.
2020-06-12 17:01:35 +02:00
Grzegorz Dlugoszewski
f9f2553231 Fix build badge 2020-06-11 17:58:36 +02:00
Grzegorz Dlugoszewski
0a153bac2f Merge pull request #1 from grdl/testing_action
Add build github action
2020-06-11 17:55:37 +02:00
Grzegorz Dlugoszewski
5001ed13c8 Add go report card badge 2020-06-11 17:52:33 +02:00
Grzegorz Dlugoszewski
8c0046e6ac Add a build badge to readme 2020-06-11 17:48:58 +02:00
Grzegorz Dlugoszewski
6c7eee26a0 Make tests verbose 2020-06-11 17:22:54 +02:00
Grzegorz Dlugoszewski
167feca7ae Add missing event triggers to test action 2020-06-11 17:21:01 +02:00
Grzegorz Dlugoszewski
fc53d0dda3 Add github action for running unit tests 2020-06-11 17:18:51 +02:00
Grzegorz Dlugoszewski
a08e80671c Remove the unshallow step from goreleaser
It's not needed because we don't use the release notes generator from goreleaser
2020-06-11 17:15:03 +02:00
Grzegorz Dlugoszewski
62bb5c7d05 Add links to compare releases in changelog 2020-06-11 17:07:22 +02:00
Grzegorz Dlugoszewski
22579690b4 Merge branch 'master' of ssh://github.com/grdl/git-get 2020-06-11 17:00:50 +02:00
Grzegorz Dlugoszewski
8462584093 Create LICENSE 2020-06-11 17:00:14 +02:00
Grzegorz Dlugoszewski
e3c933d9ad Add a changelog 2020-06-11 16:29:05 +02:00
Grzegorz Dlugoszewski
842be5ba60 Fix homebrew description to comply with brew style 2020-06-11 13:16:24 +02:00
Grzegorz Dlugoszewski
8821259eee Fix homebrew release v0.0.3 2020-06-11 12:37:48 +02:00
Grzegorz Dlugoszewski
4a5c93a3da Add goreleaser github workflow v0.0.2 2020-06-11 11:45:11 +02:00