gh_cli_rs/
lib.rs

1mod client;
2mod command;
3mod commands;
4mod error;
5mod executor;
6
7// Public API exports
8pub use client::{GhClient, GhClientBuilder};
9pub use command::{BaseCommand, CommandBuilder, GhCommand};
10pub use commands::*;
11pub use error::{GhError, Result};
12pub use executor::GhExecutor;
13
14#[cfg(test)]
15mod tests {
16    use super::*;
17
18    #[test]
19    fn test_client_creation() {
20        let client = GhClient::new();
21        // Basic smoke test
22        assert!(std::mem::size_of_val(&client) > 0);
23    }
24
25    #[test]
26    fn test_builder_pattern() {
27        let client = GhClient::builder().gh_path("/usr/local/bin/gh").build();
28        assert!(std::mem::size_of_val(&client) > 0);
29    }
30}