MCPcopy Index your code
hub / github.com/coder/coder / provisionerJobTerminal

Function provisionerJobTerminal

coderd/x/chatd/chattool/chattool.go:109–118  ·  view source on GitHub ↗
(status database.ProvisionerJobStatus)

Source from the content-addressed store, hash-verified

107}
108
109func provisionerJobTerminal(status database.ProvisionerJobStatus) bool {
110 switch status {
111 case database.ProvisionerJobStatusSucceeded,
112 database.ProvisionerJobStatusFailed,
113 database.ProvisionerJobStatusCanceled:
114 return true
115 default:
116 return false
117 }
118}
119
120func truncateRunes(value string, maxLen int) string {
121 if maxLen <= 0 || value == "" {

Callers 1

StopWorkspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected