Documentation
¶
Index ¶
- Variables
- func CheckAndAppendTimeLabel(stateLabel *string, state apiclient.ResourceState, uptime int32)
- func CreateIntValidator(viewValue *string, value *int32) func(string) error
- func CreatePortValidator(portView *string, port *int32) func(string) error
- func CreateServerPortValidator(config *apiclient.ServerConfig, portView *string, port *int32) func(string) error
- func GetLongDescription() string
- func GetStateSortPriorities(state1, state2 apiclient.ModelsResourceStateName) (int, int)
- func GetTableView(data [][]string, headers []string, footer *string, fallbackRender func()) string
- func GetTerminalWidth() int
- func NotifyEmptyApiKeyList(tip bool)
- func NotifyEmptyBuildList(tip bool)
- func NotifyEmptyEnvVarList(tip bool)
- func NotifyEmptyGitProviderList(tip bool)
- func NotifyEmptyPrebuildList(tip bool)
- func NotifyEmptyProfileList(tip bool)
- func NotifyEmptyProviderList(tip bool)
- func NotifyEmptyRunnerList(tip bool)
- func NotifyEmptyServerLogList(tip bool)
- func NotifyEmptyTargetConfigList(tip bool)
- func NotifyEmptyTargetList(tip bool)
- func NotifyEmptyWorkspaceList(tip bool)
- func NotifyEmptyWorkspaceTemplateList(tip bool)
- func WithInlineSpinner(message string, fn func() error) error
- func WithSpinner(message string, fn func() error) error
- func WrapText(text string, width int) string
- type BuildChoice
- type Msg
- type WorkspaceTemplateDefaults
Constants ¶
This section is empty.
Variables ¶
View Source
var AdditionalPropertyPadding = " "
View Source
var ArbitrarySpace = 10
View Source
var RowWhiteSpace = 1 + 4 + len(AdditionalPropertyPadding)*2 + 4 + 4 + 1
Left border, BaseTableStyle padding left, additional padding for target name and target config, BaseTableStyle padding right, BaseCellStyle padding right, right border
Functions ¶
func CheckAndAppendTimeLabel ¶ added in v0.52.0
func CheckAndAppendTimeLabel(stateLabel *string, state apiclient.ResourceState, uptime int32)
func CreateIntValidator ¶ added in v0.52.0
func CreatePortValidator ¶ added in v0.52.0
func CreateServerPortValidator ¶ added in v0.52.0
func GetLongDescription ¶
func GetLongDescription() string
func GetStateSortPriorities ¶ added in v0.52.0
func GetStateSortPriorities(state1, state2 apiclient.ModelsResourceStateName) (int, int)
func GetTableView ¶ added in v0.39.0
Gets the table view string or falls back to an unstyled view for lower terminal widths
func GetTerminalWidth ¶ added in v0.40.0
func GetTerminalWidth() int
func NotifyEmptyApiKeyList ¶ added in v0.42.0
func NotifyEmptyApiKeyList(tip bool)
func NotifyEmptyBuildList ¶ added in v0.42.0
func NotifyEmptyBuildList(tip bool)
func NotifyEmptyEnvVarList ¶ added in v0.42.0
func NotifyEmptyEnvVarList(tip bool)
func NotifyEmptyGitProviderList ¶ added in v0.42.0
func NotifyEmptyGitProviderList(tip bool)
func NotifyEmptyPrebuildList ¶ added in v0.42.0
func NotifyEmptyPrebuildList(tip bool)
func NotifyEmptyProfileList ¶ added in v0.42.0
func NotifyEmptyProfileList(tip bool)
func NotifyEmptyProviderList ¶ added in v0.42.0
func NotifyEmptyProviderList(tip bool)
func NotifyEmptyRunnerList ¶ added in v0.52.0
func NotifyEmptyRunnerList(tip bool)
func NotifyEmptyServerLogList ¶ added in v0.47.0
func NotifyEmptyServerLogList(tip bool)
func NotifyEmptyTargetConfigList ¶ added in v0.52.0
func NotifyEmptyTargetConfigList(tip bool)
func NotifyEmptyTargetList ¶ added in v0.42.0
func NotifyEmptyTargetList(tip bool)
func NotifyEmptyWorkspaceList ¶ added in v0.42.0
func NotifyEmptyWorkspaceList(tip bool)
func NotifyEmptyWorkspaceTemplateList ¶ added in v0.52.0
func NotifyEmptyWorkspaceTemplateList(tip bool)
func WithInlineSpinner ¶ added in v0.31.0
func WithSpinner ¶ added in v0.23.0
Types ¶
type BuildChoice ¶ added in v0.28.0
type BuildChoice string
const ( AUTOMATIC BuildChoice = "auto" DEVCONTAINER BuildChoice = "devcontainer" CUSTOMIMAGE BuildChoice = "custom-image" NONE BuildChoice = "none" )
func GetWorkspaceBuildChoice ¶ added in v0.52.0
func GetWorkspaceBuildChoice(workspace apiclient.CreateWorkspaceDTO, defaults *WorkspaceTemplateDefaults) (BuildChoice, string)
func (*BuildChoice) Set ¶ added in v0.28.0
func (c *BuildChoice) Set(v string) error
Set must have pointer receiver so it doesn't change the value of a copy
func (*BuildChoice) String ¶ added in v0.28.0
func (c *BuildChoice) String() string
String is used both by fmt.Print and by Cobra in help text
func (*BuildChoice) Type ¶ added in v0.28.0
func (c *BuildChoice) Type() string
Type is only used in help text
type WorkspaceTemplateDefaults ¶ added in v0.52.0
Click to show internal directories.
Click to hide internal directories.