feat(cli): add plugin (#304)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-14 15:31:28 -03:00
committed by GitHub
parent 4b229031b7
commit 0fed10fdce
16 changed files with 1739 additions and 479 deletions
+16
View File
@@ -0,0 +1,16 @@
use serde::{Serialize, Serializer};
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("failed to parse arguments: {0}")]
ParseCli(#[from] clap::Error),
}
impl Serialize for Error {
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
where
S: Serializer,
{
serializer.serialize_str(self.to_string().as_ref())
}
}