Constructor
new Session(cwd, command, sessionIdopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
cwd | string | |||
command | string | |||
sessionId | string | <optional> | null |
- Source
Methods
(static) findIncomplete(cwd) → {Array.<Object>}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Array.<Object>
(static) getLatestId(cwd) → {string|null}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- string |
null
(static) listAll(cwd) → {Array.<Object>}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Array.<Object>
(static) load(cwd, sessionId) → {Session|null}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string | |
sessionId | string |
- Source
Returns:
- Type:
- Session |
null
(static) loadLatest(cwd) → {Session|null}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Session |
null