Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Add satellite commands #387

Merged
merged 8 commits into from
Jul 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add not found error
  • Loading branch information
f0ssel committed Jul 16, 2021
commit a6fc0897274489a5e4a0cf2e9368ebf4da6e647f
4 changes: 4 additions & 0 deletions internal/cmd/satellites.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ coder satellites ls`,
return xerrors.Errorf("get satellites request: %w", err)
}

if len(sats.Data) == 0 {
return xerrors.Errorf("no satellites found")
}

err = tablewriter.WriteTable(cmd.OutOrStdout(), len(sats.Data), func(i int) interface{} {
return sats.Data[i]
})
Expand Down