aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/list.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/list.go')
-rw-r--r--commands/list.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/commands/list.go b/commands/list.go
index 3f3286f38..97753cc88 100644
--- a/commands/list.go
+++ b/commands/list.go
@@ -49,7 +49,10 @@ var listDraftsCmd = &cobra.Command{
return err
}
- c := newCommandeer(cfg)
+ c, err := newCommandeer(cfg)
+ if err != nil {
+ return err
+ }
c.Set("buildDrafts", true)
@@ -87,7 +90,10 @@ posted in the future.`,
return err
}
- c := newCommandeer(cfg)
+ c, err := newCommandeer(cfg)
+ if err != nil {
+ return err
+ }
c.Set("buildFuture", true)
@@ -125,7 +131,10 @@ expired.`,
return err
}
- c := newCommandeer(cfg)
+ c, err := newCommandeer(cfg)
+ if err != nil {
+ return err
+ }
c.Set("buildExpired", true)