Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: version & add: fast-flags #29

Merged
merged 11 commits into from
Feb 27, 2024
Merged

update: version & add: fast-flags #29

merged 11 commits into from
Feb 27, 2024

Conversation

anshalshukla
Copy link
Contributor

No description provided.

@anshalshukla anshalshukla changed the title update: version update: version & add: fast-flags Feb 15, 2024
src/main.rs Outdated
/// Select Sovereign
#[arg(short, long = "chain-mode")]
mode: Option<String>,
/// Select between Avail, Celestia, Ethereum, NoDA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let the comment be select da layer, otherwise you need to change on every new addition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but it should be exact string or we won't be able to parse the Enum out of it. Eth instead of Ethereum would fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a way to pass Enum itself, updated

src/main.rs Outdated
/// App chain name
#[arg(short, long = "chain-name")]
name: Option<String>,
/// Select Sovereign
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let the comment be select DaMode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, it should be exact string

@@ -60,6 +60,8 @@ pub fn setup_and_run_madara(config: AppChainConfig) -> Result<(), MadaraError> {
&base_path,
];

args.extend(flags.split(",").map(|flag| flag.trim()).filter(|flag| !flag.is_empty()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there no way I can do something like

madara run -- --port=9946

basically all args passed after -- go to Madara. this is pretty common in other CLI tools

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Some(host_config),
)
.await;
run_docker_image("anshalshukla/starkcompass:latest", CONTAINER_NAME, Some(env), Some(host_config)).await;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's ask them to create a release? or let's push it on our ECR if you think that will take time

@anshalshukla anshalshukla merged commit 11765b1 into main Feb 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants