feat(core): declare module structure
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
1
crates/core/src/bookmark.rs
Normal file
1
crates/core/src/bookmark.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct BookmarkManager {/* TODO */}
|
||||||
1
crates/core/src/config.rs
Normal file
1
crates/core/src/config.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct AppConfig {/* TODO */}
|
||||||
1
crates/core/src/filter.rs
Normal file
1
crates/core/src/filter.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct Filter {/* TODO */}
|
||||||
13
crates/core/src/io/file_reader.rs
Normal file
13
crates/core/src/io/file_reader.rs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
use crate::error::Result;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
|
pub struct FileReader {/* TODO */}
|
||||||
|
|
||||||
|
impl FileReader {
|
||||||
|
pub fn open(_path: &Path) -> Result<Self> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
pub fn file_size(&self) -> u64 {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
1
crates/core/src/io/line_index.rs
Normal file
1
crates/core/src/io/line_index.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct LineIndex {/* TODO */}
|
||||||
2
crates/core/src/io/mod.rs
Normal file
2
crates/core/src/io/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
pub mod file_reader;
|
||||||
|
pub mod line_index;
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
|
pub mod bookmark;
|
||||||
|
pub mod config;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
pub mod filter;
|
||||||
|
pub mod io;
|
||||||
|
pub mod parser;
|
||||||
|
pub mod search;
|
||||||
|
pub mod session;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
// pub mod io; — Task 4
|
pub mod watcher;
|
||||||
// pub mod search; — Task 4
|
|
||||||
// pub mod parser; — Task 4
|
|
||||||
// pub mod watcher; — Task 4
|
|
||||||
// pub mod filter; — Task 4
|
|
||||||
// pub mod bookmark; — Task 4
|
|
||||||
// pub mod config; — Task 4
|
|
||||||
// pub mod session; — Task 4
|
|
||||||
|
|||||||
8
crates/core/src/parser/json.rs
Normal file
8
crates/core/src/parser/json.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
use crate::types::LogEntry;
|
||||||
|
|
||||||
|
pub fn parse_line(_line: &str) -> Option<LogEntry> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
pub fn detect_json_log(_line: &str) -> bool {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
1
crates/core/src/parser/mod.rs
Normal file
1
crates/core/src/parser/mod.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod json;
|
||||||
1
crates/core/src/search/engine.rs
Normal file
1
crates/core/src/search/engine.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct SearchEngine {/* TODO */}
|
||||||
1
crates/core/src/search/mod.rs
Normal file
1
crates/core/src/search/mod.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod engine;
|
||||||
1
crates/core/src/session.rs
Normal file
1
crates/core/src/session.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct SessionManager {/* TODO */}
|
||||||
2
crates/core/src/watcher/file_watcher.rs
Normal file
2
crates/core/src/watcher/file_watcher.rs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
pub struct FileWatcher {/* TODO */}
|
||||||
|
pub struct SmartFollow {/* TODO */}
|
||||||
1
crates/core/src/watcher/mod.rs
Normal file
1
crates/core/src/watcher/mod.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod file_watcher;
|
||||||
Reference in New Issue
Block a user