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

refactor: Umbrella Iroha CLI #5282

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

aoyako
Copy link
Contributor

@aoyako aoyako commented Jan 16, 2025

Related to #4969

This PR begins the unification of cli tools into the iroha/kagami tools.
#4969 (comment)
#4969 (comment)
#4969 (comment)

Changes introduced extend the default scope of kagami by adding:

  • codec (types, json-to-scale, scale-to-json, scale-to-rust)
  • wasm (from wasm_builder)
  • kura (from kura_inspector)
  • swarm (from iroha_swarm)

Documentation in the readme is updated as well. I believe the documentation update on the website will be updated afterward.

The swarm and wasm_builder libraries are left intact in case they are later reused in the code.

Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
@aoyako aoyako marked this pull request as draft January 16, 2025 03:38
@s8sato s8sato self-assigned this Jan 17, 2025
Signed-off-by: Lohachov Mykhailo <[email protected]>
Signed-off-by: Lohachov Mykhailo <[email protected]>
@github-actions github-actions bot added the config-changes Changes in configuration and start up of the Iroha label Jan 17, 2025
Copy link

@BAStos525

@aoyako aoyako added the CLI label Jan 17, 2025
Copy link
Contributor

@s8sato s8sato left a comment

Choose a reason for hiding this comment

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

Looks good to me so far

Cargo.toml Outdated
@@ -49,6 +49,8 @@ iroha_executor_data_model = { version = "=2.0.0-rc.1.0", path = "crates/iroha_ex
iroha_test_network = { version = "=2.0.0-rc.1.0", path = "crates/iroha_test_network" }
iroha_test_samples = { version = "=2.0.0-rc.1.0", path = "crates/iroha_test_samples" }

iroha_swarm = { version = "=2.0.0-rc.1.0", path = "crates/iroha_swarm" }
Copy link
Contributor

Choose a reason for hiding this comment

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

How about directly specifying this as a iroha_kagami dependency, not as a workspace dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. It is not needed here unless used externally.

Copy link
Contributor

Choose a reason for hiding this comment

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

inquire also would be removed from workspace dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI config-changes Changes in configuration and start up of the Iroha
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants