Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit4ea0c66

Browse files
committed
fixup! Add environment status to "envs ls" command
1 parent05f8c7e commit4ea0c66

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
typeEnvironmentStatstruct {
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
typeEnvironmentStatusstring
5657

58+
// The following represent the possible environment states
5759
const (
5860
EnvironmentCreatingEnvironmentStatus="CREATING"
5961
EnvironmentOffEnvironmentStatus="OFF"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp