Skip to content
Snippets Groups Projects
Select Git revision
  • eb2d84517b219592825fcdd8cbb6e41ebda18b3c
  • master default protected
  • 308-add-a-runtime-api-to-simulate-max-net-tx-cost-for-the-end-user-fees-refund
  • 270-parametrage-de-la-gtest
  • 305-re-enable-sanity-tests
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

cli.rs

Blame
  • cli.rs 3.14 KiB
    // Copyright 2021 Axiom-Team
    //
    // This file is part of Substrate-Libre-Currency.
    //
    // Substrate-Libre-Currency is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, version 3 of the License.
    //
    // Substrate-Libre-Currency is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>.
    
    pub mod key;
    pub mod utils;
    
    use sc_cli::RunCmd;
    use std::str::FromStr;
    use structopt::StructOpt;
    
    #[derive(Debug, StructOpt)]
    pub struct Cli {
        #[structopt(subcommand)]
        pub subcommand: Option<Subcommand>,
    
        #[structopt(flatten)]
        pub run: RunCmd,
    
        /// How blocks should be sealed
        ///
        /// Options are "production", "instant", "manual", or timer interval in milliseconds
        #[structopt(long, default_value = "production")]
        pub sealing: Sealing,
    }
    
    #[derive(Debug, StructOpt)]
    pub enum Subcommand {
        /// Key management cli utilities
        Key(key::KeySubcommand),
        /// Build a chain specification.
        BuildSpec(sc_cli::BuildSpecCmd),
    
        /// Validate blocks.
        CheckBlock(sc_cli::CheckBlockCmd),
    
        /// Export blocks.
        ExportBlocks(sc_cli::ExportBlocksCmd),
    
        /// Export the state of a given block into a chain spec.
        ExportState(sc_cli::ExportStateCmd),
    
        /// Import blocks.
        ImportBlocks(sc_cli::ImportBlocksCmd),
    
        /// Remove the whole chain.
        PurgeChain(sc_cli::PurgeChainCmd),
    
        /// Revert the chain to a previous state.
        Revert(sc_cli::RevertCmd),
    
        /// Some tools for developers and advanced testers
        Utils(utils::UtilsSubCommand),
    
        /// The custom benchmark subcommmand benchmarking runtime pallets.
        #[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
        Benchmark(frame_benchmarking_cli::BenchmarkCmd),
    }