solutions/node/src/main.rs

24 lines
491 B
Rust
Raw Normal View History

2019-08-29 15:44:46 +00:00
//! Substrate Node Template CLI library.
#![warn(missing_docs)]
mod chain_spec;
#[macro_use]
mod service;
mod cli;
2020-03-05 16:53:25 +00:00
mod command;
2019-08-29 15:44:46 +00:00
2020-03-05 16:53:25 +00:00
fn main() -> sc_cli::Result<()> {
let version = sc_cli::VersionInfo {
2019-08-29 15:44:46 +00:00
name: "Substrate Node",
commit: env!("VERGEN_SHA_SHORT"),
version: env!("CARGO_PKG_VERSION"),
executable_name: "node-template",
author: "Anonymous",
description: "Template Node",
support_url: "support.anonymous.an",
2020-03-05 16:53:25 +00:00
copyright_start_year: 2017,
2019-08-29 15:44:46 +00:00
};
2020-03-05 16:53:25 +00:00
command::run(version)
2019-08-29 15:44:46 +00:00
}