minor, add isempty func for shellstate

This commit is contained in:
sawka
2022-10-30 12:52:58 -07:00
parent 1da450e61c
commit 8939c57dd8
+4
View File
@@ -120,6 +120,10 @@ type ShellState struct {
Error string `json:"error,omitempty"`
}
func (state ShellState) IsEmpty() bool {
return state.Version == "" && state.Cwd == "" && len(state.ShellVars) == 0 && state.Aliases == "" && state.Funcs == "" && state.Error == ""
}
type CmdDataPacketType struct {
Type string `json:"type"`
RespId string `json:"respid"`