-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Publishing Tool]: Have a lib and bin in same crate
- Loading branch information
Showing
12 changed files
with
205 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#![allow(dead_code, clippy::enum_variant_names, clippy::wrong_self_convention)] | ||
|
||
mod default_configurations; | ||
mod publish; | ||
|
||
use clap::Parser; | ||
use publishing_tool::error::*; | ||
use radix_engine_common::prelude::*; | ||
use transaction::prelude::*; | ||
|
||
fn main() -> Result<(), Error> { | ||
env_logger::init(); | ||
let mut out = std::io::stdout(); | ||
let cli = <Cli as clap::Parser>::parse(); | ||
cli.run(&mut out) | ||
} | ||
|
||
#[derive(Parser, Debug)] | ||
pub enum Cli { | ||
Publish(publish::Publish), | ||
} | ||
|
||
impl Cli { | ||
pub fn run<O: std::io::Write>(self, out: &mut O) -> Result<(), Error> { | ||
match self { | ||
Self::Publish(cmd) => cmd.run(out), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pub mod database_overlay; | ||
pub mod error; | ||
pub mod macros; | ||
pub mod network_connection_provider; | ||
pub mod publishing; | ||
pub mod utils; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters