Merge pull request #204 from ouch-org/infer-opt
[ouch.git] / src / lib.rs
blob45013c28eb147e2cdfd27d5eddd084a73fb0f981
1 //! This library is just meant to supply needs for the `ouch` binary crate.
3 #![warn(missing_docs)]
4 // Bare URLs in doc comments are not a problem since this project is primarily
5 // used as a binary. Since `clap` doesn't remove URL markup in it's help output,
6 // we don't mark them as URLs. This suppresses the relevant rustdoc warning:
7 #![allow(rustdoc::bare_urls)]
9 // Macros should be declared before
10 pub mod macros;
12 pub mod archive;
13 pub mod cli;
14 pub mod commands;
15 pub mod error;
16 pub mod extension;
17 pub mod list;
18 pub mod utils;
20 /// CLI argparsing definitions, using `clap`.
21 pub mod opts;
23 pub use error::{Error, Result};
24 pub use opts::{Opts, Subcommand};
25 pub use utils::QuestionPolicy;
27 /// The status code returned from `ouch` on error
28 pub const EXIT_FAILURE: i32 = libc::EXIT_FAILURE;