Download crates/forge_main/src/state.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_main/src/state.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_main/src/state.rs
-
curl -L -o state.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_main/src/state.rs
504 Bytes
| use std::path::PathBuf; | |
| use derive_setters::Setters; | |
| use forge_api::{ConversationId, Environment}; | |
| //TODO: UIState and ForgePrompt seem like the same thing and can be merged | |
| /// State information for the UI | |
| pub struct UIState { | |
| pub cwd: PathBuf, | |
| pub conversation_id: Option<ConversationId>, | |
| } | |
| impl UIState { | |
| pub fn new(env: Environment) -> Self { | |
| Self { cwd: env.cwd, conversation_id: Default::default() } | |
| } | |
| } | |