MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / pop_stash

Method pop_stash

crates/opencode-tui/src/components/prompt.rs:619–625  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

617 }
618
619 pub fn pop_stash(&mut self) -> Option<PromptStashEntry> {
620 let entry = self.stash.pop();
621 if entry.is_some() {
622 store_stash(&self.stash_path, &self.stash);
623 }
624 entry
625 }
626
627 pub fn remove_stash(&mut self, index: usize) -> bool {
628 if index >= self.stash.len() {

Callers

nothing calls this directly

Calls 1

store_stashFunction · 0.85

Tested by

no test coverage detected