3 bridge::{Bridge, EffectId},
9 core: Bridge<OpencodeApp>,
12impl Default for CoreFfi {
13 fn default() -> Self {
21 pub fn new() -> Self {
23 core: Bridge::new(Core::new()),
28 pub fn update(&self, data: &[u8]) -> Vec<u8> {
29 let mut effects = Vec::new();
30 match self.core.update(data, &mut effects) {
32 Err(e) => panic!("{e}"),
37 pub fn resolve(&self, id: u32, data: &[u8]) -> Vec<u8> {
38 let mut effects = Vec::new();
39 match self.core.resolve(EffectId(id), data, &mut effects) {
41 Err(e) => panic!("{e}"),
46 pub fn view(&self) -> Vec<u8> {
47 let mut view_model = Vec::new();
48 match self.core.view(&mut view_model) {
50 Err(e) => panic!("{e}"),
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list