Skip to content

Commit

Permalink
feat: simplify output
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingandyyy committed Apr 17, 2022
1 parent 8f7dda4 commit 5729267
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.0.5
Binary file modified bin/gofuzzyclone
Binary file not shown.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module go-approve
module gofuzzyclone

go 1.17

Expand Down
8 changes: 4 additions & 4 deletions gofuzzyclone.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func wildCardToRegexp(pattern string) string {

func main() {
var setup = flag.Bool("setup", false, "renew github token")
var dest = flag.String("out", ".", "output to which sdirectory")
var dest = flag.String("output", "", "output to which sdirectory")
var search = flag.String("search", "", "search patern")
var owner = flag.String("owner", "", "github user/org")
var mode = flag.String("mode", "regex", "matching mechanism")
Expand Down Expand Up @@ -259,12 +259,12 @@ func main() {
confirm := "n"
println("green", fmt.Sprintf("Result: %d repos match %q", len(all_repos_matched), *search))

if *dest == "./" {
fmt.Printf("Clone all repos to which folder? ")
if *dest == "" {
fmt.Printf("Clone %d repos to which folder? ", len(all_repos_matched))
fmt.Scanf("%s", dest)
}

printf("yellow", fmt.Sprintf("Clone %d repos to %v? (Y/n) ", len(all_repos_matched), *dest))
printf("yellow", "Confirm? (Y/n) ")
fmt.Scanf("%s", &confirm)

if confirm != "Y" {
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export version=0.0.4
export version=0.0.5
export author=amazingandyyy
export package_name=gofuzzyclone

Expand Down

0 comments on commit 5729267

Please sign in to comment.