8000 Fix proposal management by rtb-12 · Pull Request #1285 · calimero-network/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix proposal management #1285

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 0 additions & 4 deletions crates/meroctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ mod bootstrap;
mod call;
mod context;
mod peers;
mod proxy;

use app::AppCommand;
use call::CallCommand;
use context::ContextCommand;
use peers::PeersCommand;
use proxy::ProxyCommand;

pub const EXAMPLES: &str = r"
# List all applications
Expand Down Expand Up @@ -57,7 +55,6 @@ pub struct RootCommand {
pub enum SubCommands {
App(AppCommand),
Context(ContextCommand),
Proxy(ProxyCommand),
Call(CallCommand),
Bootstrap(BootstrapCommand),
Peers(PeersCommand),
Expand Down Expand Up @@ -107,7 +104,6 @@ impl RootCommand {
let result = match self.action {
SubCommands::App(application) => application.run(&environment).await,
SubCommands::Context(context) => context.run(&environment).await,
SubCommands::Proxy(proxy) => proxy.run(&environment).await,
SubCommands::Call(call) => call.run(&environment).await,
SubCommands::Bootstrap(call) => call.run(&environment).await,
SubCommands::Peers(peers) => peers.run(&environment).await,
Expand Down
4 changes: 4 additions & 0 deletions crates/meroctl/src/cli/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::cli::context::identity::ContextIdentityCommand;
use crate::cli::context::invite::InviteCommand;
use crate::cli::context::join::JoinCommand;
use crate::cli::context::list::ListCommand;
use crate::cli::context::proposals::ProposalsCommand;
use crate::cli::context::update::UpdateCommand;
use crate::cli::context::watch::WatchCommand;
use crate::cli::Environment;
Expand All @@ -26,6 +27,7 @@ mod identity;
pub mod invite;
pub mod join;
mod list;
mod proposals;
mod update;
mod watch;

Expand Down Expand Up @@ -67,6 +69,7 @@ pub enum ContextSubCommands {
Identity(ContextIdentityCommand),
Alias(ContextAliasCommand),
Use(UseCommand),
Proposals(ProposalsCommand),
}

impl Report for Context {
Expand Down Expand Up @@ -101,6 +104,7 @@ impl ContextCommand {
ContextSubCommands::Identity(identity) => identity.run(environment).await,
ContextSubCommands::Alias(alias) => alias.run(environment).await,
ContextSubCommands::Use(use_cmd) => use_cmd.run(environment).await,
ContextSubCommands::Proposals(proposals) => proposals.run(environment).await,
}
}
}
Loading
Loading
0