summaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
Diffstat (limited to 'human.go')
-rw-r--r--human.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/human.go b/human.go
index 66d1211..294a789 100644
--- a/human.go
+++ b/human.go
@@ -18,7 +18,7 @@ func standardHeader() string {
return fmt.Sprintf("%-4s %-40s %s", "", "Path", "flags")
}
-func (all *Repos) standardHeader(r *Repo) string {
+func (all *ForgeConfigs) standardHeader(r *ForgeConfig) string {
var flags string
var readonly string
if all.IsPrivate(r.GoPath) {
@@ -36,7 +36,7 @@ func (all *Repos) standardHeader(r *Repo) string {
}
// print a human readable table to STDOUT
-func (all *Repos) PrintTable() {
+func (all *ForgeConfigs) PrintTable() {
if all == nil {
log.Info("WTF")
os.Exit(0)
@@ -44,7 +44,7 @@ func (all *Repos) PrintTable() {
log.Info(standardHeader())
loop := all.SortByPath()
for loop.Scan() {
- r := loop.Repo()
+ r := loop.Next()
log.Info(all.standardHeader(r))
}
}