aboutsummaryrefslogtreecommitdiffstats
path: root/lib/warden-core/src/config/cli/mod.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-04-02 14:27:45 +0200
committerrtkay123 <dev@kanjala.com>2026-04-02 14:27:45 +0200
commit8bc645b006080b860e40c0ff55b485125dc6157d (patch)
tree8344e498fa50dc237f0f1fdbde2e38305da2fdfe /lib/warden-core/src/config/cli/mod.rs
parentdaeb5311840680599a0ce6e49d181b9289010f68 (diff)
downloadwarden-master.tar.bz2
warden-master.zip
test(api): schemaHEADmaster
Diffstat (limited to 'lib/warden-core/src/config/cli/mod.rs')
-rw-r--r--lib/warden-core/src/config/cli/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/warden-core/src/config/cli/mod.rs b/lib/warden-core/src/config/cli/mod.rs
index e0c5450..f4ffe05 100644
--- a/lib/warden-core/src/config/cli/mod.rs
+++ b/lib/warden-core/src/config/cli/mod.rs
@@ -57,6 +57,15 @@ pub struct Server {
default_value = "5"
)]
pub timeout_secs: Option<u64>,
+ /// Pagination limit
+ #[arg(
+ long,
+ value_name = "PAGINATION_LIMIT",
+ env = "PAGINATION_LIMIT",
+ default_value = "50"
+ )]
+ #[arg(value_parser = clap::value_parser!(i64).range(1..))]
+ pub pagination_limit: Option<i64>,
}
impl Default for Server {
@@ -70,6 +79,7 @@ impl Default for Server {
)),
log_dir: Some(std::env::temp_dir()),
timeout_secs: Some(5),
+ pagination_limit: Some(50),
}
}
}