-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update paths for workspace dependencies
- Loading branch information
Nick Garfield
committed
Feb 25, 2022
1 parent
db5da71
commit 893e00b
Showing
11 changed files
with
53 additions
and
76 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,31 +1,31 @@ | ||
use clap::{App, AppSettings, Arg}; | ||
use clap::{Command, Arg}; | ||
|
||
pub fn app() -> App<'static> { | ||
App::new("admin") | ||
pub fn app() -> Command<'static> { | ||
Command::new("admin") | ||
.about("Run admin instructions against Cronos") | ||
.setting(AppSettings::SubcommandRequiredElseHelp) | ||
.subcommand_required(true) | ||
.subcommand(admin_cancel_app()) | ||
.subcommand(admin_health_app()) | ||
.subcommand(admin_initialize_app()) | ||
} | ||
|
||
fn admin_cancel_app() -> App<'static> { | ||
App::new("cancel").about("Cancels a scheduled task").arg( | ||
fn admin_cancel_app() -> Command<'static> { | ||
Command::new("cancel").about("Cancels a scheduled task").arg( | ||
Arg::new("address") | ||
.index(1) | ||
.takes_value(true) | ||
.help("A task address"), | ||
) | ||
} | ||
|
||
fn admin_health_app() -> App<'static> { | ||
App::new("health") | ||
fn admin_health_app() -> Command<'static> { | ||
Command::new("health") | ||
.about("Admin health commands") | ||
.setting(AppSettings::SubcommandRequiredElseHelp) | ||
.subcommand(App::new("reset").about("Resets the health account")) | ||
.subcommand(App::new("start").about("Starts a new health check")) | ||
.subcommand_required(true) | ||
.subcommand(Command::new("reset").about("Resets the health account")) | ||
.subcommand(Command::new("start").about("Starts a new health check")) | ||
} | ||
|
||
fn admin_initialize_app() -> App<'static> { | ||
App::new("initialize").about("Initializes the Cronos program") | ||
fn admin_initialize_app() -> Command<'static> { | ||
Command::new("initialize").about("Initializes the Cronos program") | ||
} |
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,5 +1,5 @@ | ||
use clap::App; | ||
use clap::Command; | ||
|
||
pub fn app() -> App<'static> { | ||
App::new("blocktime").about("Check the current Solana blocktime") | ||
pub fn app() -> Command<'static> { | ||
Command::new("blocktime").about("Check the current Solana blocktime") | ||
} |
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,7 +1,7 @@ | ||
use clap::App; | ||
use clap::Command; | ||
|
||
pub fn app() -> App<'static> { | ||
App::new("daemon") | ||
pub fn app() -> Command<'static> { | ||
Command::new("daemon") | ||
.about("Manage your daemon") | ||
.subcommand(App::new("new").about("Create a daemon account")) | ||
.subcommand(Command::new("new").about("Create a daemon account")) | ||
} |
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,7 +1,7 @@ | ||
use clap::App; | ||
use clap::Command; | ||
|
||
pub fn app() -> App<'static> { | ||
App::new("health") | ||
pub fn app() -> Command<'static> { | ||
Command::new("health") | ||
.about("Check the Cronos health") | ||
.subcommand(App::new("reset").about("Reset the Cronos health tracker")) | ||
.subcommand(Command::new("reset").about("Reset the Cronos health tracker")) | ||
} |
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