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

Commit 4ea0c66

Browse files
committed
fixup! Add environment status to "envs ls" command
1 parent 05f8c7e commit 4ea0c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coder-sdk/env.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type Environment struct {
3535
AutoOffThreshold xjson.Duration `json:"auto_off_threshold" tab:"-"`
3636
}
3737

38+
// EnvironmentStat represents the state of an environment
3839
type EnvironmentStat struct {
3940
Time time.Time `json:"time"`
4041
LastOnline time.Time `json:"last_online"`
@@ -54,6 +55,7 @@ func (e EnvironmentStat) String() string {
5455
// EnvironmentStatus refers to the states of an environment.
5556
type EnvironmentStatus string
5657

58+
// The following represent the possible environment states
5759
const (
5860
EnvironmentCreating EnvironmentStatus = "CREATING"
5961
EnvironmentOff EnvironmentStatus = "OFF"

0 commit comments

Comments
 (0)