fix(cli): expose hidden structs (#1856)

closes  #1843
This commit is contained in:
Amr Bashir
2024-10-01 15:35:13 +03:00
committed by GitHub
parent 04459afbb6
commit 68579934c9
5 changed files with 12 additions and 4 deletions
+2
View File
@@ -18,3 +18,5 @@ impl Serialize for Error {
serializer.serialize_str(self.to_string().as_ref())
}
}
pub type Result<T> = std::result::Result<T, Error>;
+3 -2
View File
@@ -23,8 +23,9 @@ mod error;
mod parser;
use config::{Arg, Config};
pub use error::Error;
type Result<T> = std::result::Result<T, Error>;
pub use error::{Error, Result};
pub use parser::{ArgData, Matches, SubcommandMatches};
pub struct Cli<R: Runtime>(PluginApi<R, Config>);