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
Grzegorz Dlugoszewski
0a71f89811
Add homebrew config to goreleaser
2020-06-11 11:33:06 +02:00
Grzegorz Dlugoszewski
dfef6151d1
Add a --branch flag that specifies which branch or tag to check out after cloning
2020-06-08 21:37:26 +02:00
Grzegorz Dlugoszewski
919359f26f
Skip walking directories we don't have permissions to access
2020-06-08 20:06:27 +02:00
Grzegorz Dlugoszewski
4765d943ec
Count commits ahead and behind the upstream branch
2020-06-08 17:16:46 +02:00
Grzegorz Dlugoszewski
ee26ddc38f
Add a --fetch flag to first fetch from remotes before printing repos status
2020-06-08 14:54:19 +02:00
Grzegorz Dlugoszewski
e5c3285040
Add output flag and simple tree option
2020-06-08 14:00:59 +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
1f707ad7db
Test new tree implementation of repos list
2020-06-04 20:26:27 +02:00
Grzegorz Dlugoszewski
239ff699a3
Add ssh key authentication when cloning via ssh
2020-06-04 15:45:46 +02:00
Grzegorz Dlugoszewski
f4636a3a73
Fix reading config values from cli flags
...
* InitConfig needs to be called after cmd.Execute, otherwise the flags are not parsed yet
* Values need to be checked also for emptiness, not only for being unset
2020-06-04 13:02:24 +02:00
Grzegorz Dlugoszewski
7d2c9b1954
Fix tests after changing the way branches are ordered
...
"master" branch is now always on top.
2020-06-04 12:24:37 +02:00
Grzegorz Dlugoszewski
f2d8496136
Refactor config provider using viper
2020-06-04 11:38:01 +02:00
Grzegorz Dlugoszewski
205eecc073
Update branch name sorting to keep master always on top
2020-06-03 16:39:22 +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