go fmt
This commit is contained in:
parent
4aede61066
commit
c9dda02092
|
@ -56,7 +56,6 @@ func main() {
|
|||
|
||||
client := github.NewClient(tc)
|
||||
|
||||
|
||||
teamMembers := fetchUsers(client, ghOrganization, ghTeam)
|
||||
for _, user := range teamMembers {
|
||||
if *quiet == false {
|
||||
|
@ -95,9 +94,9 @@ func main() {
|
|||
}
|
||||
|
||||
if *quiet == false {
|
||||
fmt.Println("Writing to", *keysDir + "/" + *user+".key")
|
||||
fmt.Println("Writing to", *keysDir+"/"+*user+".key")
|
||||
}
|
||||
err := ioutil.WriteFile(*keysDir + "/" + *user+".key", sshKeys.Bytes(), 0444)
|
||||
err := ioutil.WriteFile(*keysDir+"/"+*user+".key", sshKeys.Bytes(), 0444)
|
||||
if err != nil {
|
||||
fmt.Println(*user+".key error ", err)
|
||||
}
|
||||
|
@ -132,9 +131,9 @@ func main() {
|
|||
nextPage = rsp.NextPage
|
||||
}
|
||||
if *quiet == false {
|
||||
fmt.Println("Writing to", *keysDir + "/" + *user+".gpg")
|
||||
fmt.Println("Writing to", *keysDir+"/"+*user+".gpg")
|
||||
}
|
||||
err = ioutil.WriteFile(*keysDir + "/" + *user+".gpg", pgpKeys.Bytes(), 0444)
|
||||
err = ioutil.WriteFile(*keysDir+"/"+*user+".gpg", pgpKeys.Bytes(), 0444)
|
||||
if err != nil {
|
||||
fmt.Println(*user+".gpg error ", err)
|
||||
}
|
||||
|
@ -204,7 +203,7 @@ func fetchUsers(client *github.Client, org *string, team *string) (teamMembers [
|
|||
}
|
||||
|
||||
if targetTeam == nil {
|
||||
fmt.Println(*team , " team not found in ", *org)
|
||||
fmt.Println(*team, " team not found in ", *org)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue