monosecret 0.3.3

Declarative secrets, every environment, any provider
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use miette::Result;

fn main() -> Result<()> {
	// Rust's runtime ignores SIGPIPE by default, turning a closed pipe (e.g.
	// `monosecret check | head`) into an EPIPE error instead of a quiet exit.
	// Restore the default disposition so a broken pipe just terminates us,
	// matching standard Unix CLI behavior.
	#[cfg(unix)]
	unsafe {
		libc::signal(libc::SIGPIPE, libc::SIG_DFL);
	}

	monosecret::cli::main()
}