This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from tendermint/abscissa/v0.1.0-pre.1
Upgrade to Abscissa 0.1.0-pre.1
- Loading branch information
Showing
57 changed files
with
875 additions
and
674 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
//! Main entry point for the `tmkms` executable | ||
extern crate tmkms; | ||
use tmkms::KmsApplication; | ||
use tmkms::application::APPLICATION; | ||
|
||
/// Boot the `tmkms` application | ||
fn main() { | ||
KmsApplication::boot(); | ||
abscissa::boot(&APPLICATION); | ||
} |
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 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 |
---|---|---|
@@ -1,19 +1,27 @@ | ||
//! The `help` subcommand | ||
use abscissa::{Callable, Command}; | ||
use abscissa::{Command, Runnable}; | ||
|
||
use super::KmsCommand; | ||
|
||
/// The `help` subcommand | ||
#[derive(Debug, Default, Options)] | ||
pub struct HelpCommand { | ||
/// Arguments to the `help` command | ||
#[options(free)] | ||
pub args: Vec<String>, | ||
} | ||
|
||
impl Callable for HelpCommand { | ||
impl Runnable for HelpCommand { | ||
/// Print help message | ||
fn call(&self) { | ||
KmsCommand::print_usage(self.args.as_slice()); | ||
fn run(&self) { | ||
KmsCommand::print_usage( | ||
&self | ||
.args | ||
.as_slice() | ||
.iter() | ||
.map(|arg| arg.as_ref()) | ||
.collect::<Vec<_>>(), | ||
); | ||
} | ||
} |
Oops, something went wrong.