working out testing
This commit is contained in:
parent
1ea9bdf841
commit
4fc9d038ca
3
Makefile
3
Makefile
|
@ -59,4 +59,5 @@ devel:
|
||||||
forge clean devel --force --verbose
|
forge clean devel --force --verbose
|
||||||
|
|
||||||
pull: install
|
pull: install
|
||||||
forge pull test
|
forge pull dirty
|
||||||
|
forge pull patches
|
||||||
|
|
4
argv.go
4
argv.go
|
@ -68,7 +68,9 @@ type PatchCmd struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PullCmd struct {
|
type PullCmd struct {
|
||||||
Test *EmptyCmd `arg:"subcommand:test" help:"list repos that need 'git pull'"`
|
Test *EmptyCmd `arg:"subcommand:test" help:"list repos that need 'git pull'"`
|
||||||
|
Dirty *EmptyCmd `arg:"subcommand:dirty" help:"only check dirty repos"`
|
||||||
|
Patches *EmptyCmd `arg:"subcommand:patches" help:"only check repos with patches"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConfigAddCmd struct {
|
type ConfigAddCmd struct {
|
||||||
|
|
|
@ -46,7 +46,7 @@ func (args) doBashAuto() {
|
||||||
case "list":
|
case "list":
|
||||||
fmt.Println("--full")
|
fmt.Println("--full")
|
||||||
case "pull":
|
case "pull":
|
||||||
fmt.Println("list --force")
|
fmt.Println("list dirty patches --force")
|
||||||
case "--find":
|
case "--find":
|
||||||
fmt.Println("foo bar")
|
fmt.Println("foo bar")
|
||||||
case "patch":
|
case "patch":
|
||||||
|
|
12
doPull.go
12
doPull.go
|
@ -48,6 +48,18 @@ func doGitPullNew() error {
|
||||||
return fmt.Errorf("not really 'fetch pull'")
|
return fmt.Errorf("not really 'fetch pull'")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if argv.GitPull.Dirty != nil {
|
||||||
|
found := findDirty()
|
||||||
|
me.forge.PrintHumanTableFull(found)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if argv.GitPull.Patches != nil {
|
||||||
|
found := findReposWithPatches()
|
||||||
|
me.forge.PrintHumanTableFull(found)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if argv.GitPull.Test != nil {
|
if argv.GitPull.Test != nil {
|
||||||
log.Info("list repo's with updates here")
|
log.Info("list repo's with updates here")
|
||||||
found := doFind()
|
found := doFind()
|
||||||
|
|
Loading…
Reference in New Issue