fix: report unsupported CLI operations honestly

This commit is contained in:
Loki 2026-10-16 23:15:33 +02:00
parent 8cbd86c98a
commit 7b41d0b7eb
Signed by: boba
GPG key ID: 253067914055423B
6 changed files with 14 additions and 37 deletions

View file

@ -1,11 +1,7 @@
pub async fn enable() -> anyhow::Result<()> {
println!("Emergency mode ENABLED");
println!("Only whitelisted IPs will be allowed through.");
Ok(())
anyhow::bail!("emergency mode is not implemented; change the edge policy and restart Rampart")
}
pub async fn disable() -> anyhow::Result<()> {
println!("Emergency mode DISABLED");
println!("Normal filtering resumed.");
Ok(())
anyhow::bail!("emergency mode is not implemented; change the edge policy and restart Rampart")
}