Skip to content

Commit

Permalink
feat: create fuzzyclone
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingandyyy committed Apr 17, 2022
0 parents commit da7ac6c
Show file tree
Hide file tree
Showing 12 changed files with 944 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.DS_Store
test*
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2022 Andy Chen (amazinandyyy)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gofuzzyclone
73 changes: 73 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# gofuzzyclone

go fuzzy search repos and clone (supported wildcard/regex)

# Installation

```sh
bash <(curl -sL https://raw.githubusercontent.com/amazingandyyy/gofuzzyclone/main/install.sh)
```

## Preparation

- [Generate a Github personal access token](https://github.com/settings/tokens/new?scopes=repo&description=gofuzzyclone-cli)
- [repo] scrope
- [no expiration]

## Usage

```
gofuzzyclone -help
gofuzzyclone
Search under which owner? amazingandyyy
Search for what wildcard pattern? (Press [Enter] to skip) go*
Search for what regex pattern? (Press [Enter] to skip) .*-template
Searching in amazingandyyy 🌍
1 amazingandyyy/goapprove
2 amazingandyyy/argocd-example-extension
3 amazingandyyy/learn-golang-with-stephen
4 amazingandyyy/algor-in-js
5 amazingandyyy/fotingo
6 amazingandyyy/good-job
7 amazingandyyy/go-grpc-start
8 amazingandyyy/gomorph
9 amazingandyyy/django-api
10 amazingandyyy/one-click-hugo-cms
11 amazingandyyy/javascript-algorithms
12 amazingandyyy/go-app
13 amazingandyyy/app-template
14 amazingandyyy/learn-golang-with-todd
15 amazingandyyy/learn-golang-basic
16 amazingandyyy/gotraining
17 amazingandyyy/go
18 amazingandyyy/goexpress
19 amazingandyyy/go-lang-cheat-sheet
20 amazingandyyy/mongo-stars
21 amazingandyyy/mongo-property
22 amazingandyyy/mongo-flashcard
Found 22 amazingandyyy's repositories match pattern of go* .*-template
Clone all repos to which folder? ./test
Are you sure to continue cloning them all into ./test ? (Y/n) Y
Cloned: goapprove
Cloned: argocd-example-extension
Cloned: learn-golang-with-stephen
Cloned: algor-in-js
Cloned: fotingo
Cloned: good-job
Cloned: go-grpc-start
Cloned: gomorph
Cloned: django-api
Cloned: one-click-hugo-cms
Cloned: javascript-algorithms
Cloned: go-app
Cloned: app-template
Cloned: learn-golang-with-todd
Cloned: learn-golang-basic
Cloned: gotraining
...
```

## LICENSE

[MIT](LICENSE)
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
Binary file added bin/gofuzzyclone
Binary file not shown.
33 changes: 33 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module go-approve

go 1.17

require (
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/briandowns/spinner v1.18.1 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-github/v43 v43.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
Loading

0 comments on commit da7ac6c

Please sign in to comment.