-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FroVolod
committed
Sep 21, 2023
1 parent
ed61413
commit 69d1c88
Showing
7 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; | ||
|
||
pub mod abi_command; | ||
pub mod build_command; | ||
|
||
#[derive(Debug, EnumDiscriminants, Clone, interactive_clap::InteractiveClap)] | ||
#[interactive_clap(context = near_cli_rs::GlobalContext)] | ||
#[strum_discriminants(derive(EnumMessage, EnumIter))] | ||
#[interactive_clap(disable_back)] | ||
/// What are you up to? (select one of the options with the up-down arrows on your keyboard and press Enter) | ||
pub enum NearCommand { | ||
#[strum_discriminants(strum( | ||
message = "build - Build a NEAR contract and optionally embed ABI" | ||
))] | ||
/// Build a NEAR contract and optionally embed ABI | ||
Build(self::build_command::BuildCommand), | ||
#[strum_discriminants(strum(message = "abi - Generates ABI for the contract"))] | ||
/// Generates ABI for the contract | ||
Abi(self::abi_command::AbiCommand), | ||
} |
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