Skip to content

Commit

Permalink
some small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rgarcia committed Oct 20, 2017
1 parent 039eee4 commit d223a19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions clone/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package clone

import (
"context"
"fmt"
"os"
"os/exec"
"path"
Expand All @@ -28,7 +27,6 @@ type Error struct {

func Clone(ctx context.Context, input Input) (Output, error) {
cloneIntoDir := path.Join(input.WorkDir, "cloned")
fmt.Println(cloneIntoDir)
if _, err := os.Stat(cloneIntoDir); err == nil {
// already cloned
return Output{Success: true, ClonedIntoDir: cloneIntoDir}, nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var initCmd = &cobra.Command{
}

for _, repo := range output.Repos {
fmt.Println(repo)
fmt.Println(repo.Name)
}
},
}
10 changes: 5 additions & 5 deletions demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
Let's do the re-org right now
- Target a set of repos by specifying a Github search: https://github.com/search?utf8=%E2%9C%93&q=org%3AClever+path%3Alaunch+eng-apps&type=
```
./mp init "org:Clever path:launch eng-apps"
bin/mp init "org:Clever path:launch eng-apps"
```
- Clone these repos:
```
./mp clone
./mp status
bin/mp clone
bin/mp status
```
- Write a small script to update old team ownership the new:
```
less demo/update-team.go
./mp plan go run `pwd`/demo/update-team.go
bin/mp plan go run `pwd`/demo/update-team.go
```
- Open PRs (all of them? or target handful of repos?)
```
./mp push -r hubble
bin/mp push -r hubble
```
- Watch status / merge?
Expand Down

0 comments on commit d223a19

Please sign in to comment.