use std::path::Path;
use std::process::Command;
use tracing::debug;
pub struct Builder {
command: Command,
}
impl Builder {
pub fn new(command: Command) -> Self {
Self { command }
}
pub fn tx_file<P: AsRef<Path>>(mut self, tx_signed: P) -> Self {
self.command.arg("--tx-file").arg(tx_signed.as_ref());
self
}
pub fn build(self) -> Command {
debug!("Cardano Cli - transaction id: {:?}", self.command);
self.command
}
}