mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
refactor: extract constants
This commit is contained in:
parent
84f183ab84
commit
36423fc994
7 changed files with 65 additions and 52 deletions
|
|
@ -18,12 +18,11 @@ use xxhash_rust::xxh3::xxh3_64;
|
|||
mod keys;
|
||||
mod view; use self::view::*;
|
||||
mod model; pub(crate) use self::model::*;
|
||||
mod constants; pub(crate) use self::constants::*;
|
||||
|
||||
pub(crate) type Usually<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
||||
pub(crate) type Perhaps<T> = Usually<Option<T>>;
|
||||
|
||||
pub(crate) const PAGE_SIZE: usize = 10;
|
||||
|
||||
fn cli () -> clap::Command {
|
||||
command!()
|
||||
.arg(arg!([path] "Path to root directory")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue