mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Break out non-autocomplete changes from autocomplete PR (#618)
This improves the ephemeral command runner to allow for honoring of timeouts and proper handling of overriding the current working directory. It also fixes some partially transparent font colors in light mode, making them solid instead. It also updates the InputModel to be auto-observable and utilize some getters to ensure the cmdinput is getting updated whenever necessary state changes take place.
This commit is contained in:
@@ -833,6 +833,7 @@ type RunPacketType struct {
|
||||
Detached bool `json:"detached,omitempty"`
|
||||
ReturnState bool `json:"returnstate,omitempty"`
|
||||
IsSudo bool `json:"issudo,omitempty"`
|
||||
Timeout time.Duration `json:"timeout"` // TODO: added vnext. This is the timeout for the command to run. If the command does not complete in this time, it will be killed. The default zero value will not impose a timeout.
|
||||
}
|
||||
|
||||
func (*RunPacketType) GetType() string {
|
||||
|
||||
Reference in New Issue
Block a user