diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-08 11:17:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-08 11:17:47 +0100 |
| commit | 5b384487331eaf08031dfe438bb2affa31aafcbb (patch) | |
| tree | 51904c3df8c54cbc5b7aa5832a5bae49d57f7141 /ui/backend/src/state.rs | |
| parent | feat(bash/blesh): hook into BLE_ONLOAD to resolve loading order issue (#2234) (diff) | |
| download | atuin-5b384487331eaf08031dfe438bb2affa31aafcbb.zip | |
feat(gui): runbooks that run (#2233)
* add initial runbooks frontend
* fix buttons, scroll, add shell support to editor
* work
* some tweaks
* wip - run crate
* functioning executable blocks
* handle resizing, killing ptys
* clear properly on stop
* move terminal to its own component, handle lifecycle better
* fix all build issues
* ffs codespelll
* update lockfile
* clippy is needy once more
* only build pty stuff on mac/linux
* vendor pty handling into desktop
* update lockfile
Diffstat (limited to 'ui/backend/src/state.rs')
| -rw-r--r-- | ui/backend/src/state.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/backend/src/state.rs b/ui/backend/src/state.rs new file mode 100644 index 00000000..de53b4c5 --- /dev/null +++ b/ui/backend/src/state.rs @@ -0,0 +1,10 @@ +use std::collections::HashMap; +use std::sync::Mutex; +use tauri::async_runtime::RwLock; + +use crate::pty::Pty; + +#[derive(Default)] +pub(crate) struct AtuinState { + pub pty_sessions: RwLock<HashMap<uuid::Uuid, Pty>>, +} |
