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

feat(cli, 2.0.0-rc.1): add iroha transaction get and other important commands #5290

Draft
wants to merge 4 commits into
base: 2.0.0-rc.1
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Check schema.json
if: always()
run: ./scripts/tests/consistency.sh schema
- name: Check CommandLineHelp.md
if: always()
run: ./scripts/tests/consistency.sh cli-help
- name: Check Docker Compose configurations
if: always()
run: ./scripts/tests/consistency.sh docker-compose
Expand Down
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/iroha/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod config;
pub mod http;
mod http_default;
pub mod query;
mod secrecy;
pub mod secrecy;

pub use iroha_crypto as crypto;
pub use iroha_data_model as data_model;
Expand Down
3 changes: 3 additions & 0 deletions crates/iroha/src/secrecy.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
//! Types for representing securely printable secrets.
use std::fmt;

use derive_more::Constructor;
use serde::{Deserialize, Serialize, Serializer};

/// SecretString epresents a sensitive secret string.
#[derive(Clone, Deserialize, Constructor)]
pub struct SecretString(String);

impl SecretString {
/// Returns underlying secret string
pub fn expose_secret(&self) -> &str {
&self.0
}
Expand Down
1 change: 1 addition & 0 deletions crates/iroha_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ thiserror = { workspace = true }
error-stack = { workspace = true, features = ["eyre"] }
eyre = { workspace = true }
clap = { workspace = true, features = ["derive"] }
clap-markdown = "0.1.4"
humantime = { workspace = true }
json5 = { workspace = true }
serde = { workspace = true }
Expand Down
Loading
Loading