mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 13:07:56 +00:00
Sort out the subcommand impl
This commit is contained in:
+5
-22
@@ -15,35 +15,18 @@
|
||||
// along with substrate-subxt. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use sc_cli::{
|
||||
RunCmd,
|
||||
BuildSpecCmd,
|
||||
// ExportBlocksCmd, ImportBlocksCmd, CheckBlockCmd, ExportStateCmd, RevertCmd,
|
||||
PurgeChainCmd,
|
||||
// Subcommand,
|
||||
CliConfiguration, SharedParams,
|
||||
RunCmd,
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub enum Subcommand {
|
||||
/// Build a spec.json file, outputs to stdout.
|
||||
BuildSpec(BuildSpecCmd),
|
||||
/// Export blocks to a file.
|
||||
// ExportBlocks(ExportBlocksCmd),
|
||||
/// Import blocks from file.
|
||||
// ImportBlocks(ImportBlocksCmd),
|
||||
/// Validate a single block.
|
||||
// CheckBlock(CheckBlockCmd),
|
||||
/// Export state as raw chain spec.
|
||||
// ExportState(ExportStateCmd),
|
||||
/// Revert chain to the previous state.
|
||||
// Revert(RevertCmd),
|
||||
/// Remove the whole chain data.
|
||||
PurgeChain(PurgeChainCmd),
|
||||
}
|
||||
|
||||
impl CliConfiguration for Subcommand {
|
||||
fn shared_params(&self) -> &SharedParams { todo!() }
|
||||
/// Build a spec.json file, outputs to stdout.
|
||||
BuildSpec(BuildSpecCmd),
|
||||
/// Remove the whole chain data.
|
||||
PurgeChain(PurgeChainCmd),
|
||||
}
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
|
||||
Reference in New Issue
Block a user