Skip to content

Commit 9c83cc0

Browse files
committed
add paused field to list output
1 parent 08ce027 commit 9c83cc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/snapshot/snapshot_schedule_list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ var snapshotScheduleListCmd = &cobra.Command{
5151
"name": schedule.Name,
5252
"cron_expression": schedule.CronExpression,
5353
"status": schedule.Status.State,
54+
"paused": strconv.FormatBool(schedule.Paused),
5455
"instances": instanceCount,
5556
"last_snapshot": lastSnapshot,
5657
"created_at": schedule.CreatedAt.Format(time.RFC822),
@@ -67,6 +68,7 @@ var snapshotScheduleListCmd = &cobra.Command{
6768
ow.AppendDataWithLabel("name", utility.Green(schedule.Name), "Name")
6869
ow.AppendDataWithLabel("cron_expression", schedule.CronExpression, "Cron Expression")
6970
ow.AppendDataWithLabel("status", utility.Green(schedule.Status.State), "Status")
71+
ow.AppendDataWithLabel("paused", strconv.FormatBool(schedule.Paused), "Paused")
7072
ow.AppendDataWithLabel("instances", strconv.Itoa(len(schedule.Instances)), "Instances")
7173
lastSnapshot := "N/A"
7274
if schedule.Status.LastSnapshot.ID != "" {

0 commit comments

Comments
 (0)