mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
add version to cli utils
This commit is contained in:
committed by
Aiden McClelland
parent
ba06216e84
commit
cd7bb07de5
@@ -1,6 +1,7 @@
|
|||||||
use clap::Arg;
|
use clap::Arg;
|
||||||
use embassy::context::CliContext;
|
use embassy::context::CliContext;
|
||||||
use embassy::util::logger::EmbassyLogger;
|
use embassy::util::logger::EmbassyLogger;
|
||||||
|
use embassy::version::{Current, VersionT};
|
||||||
use embassy::Error;
|
use embassy::Error;
|
||||||
use rpc_toolkit::run_cli;
|
use rpc_toolkit::run_cli;
|
||||||
use rpc_toolkit::yajrc::RpcError;
|
use rpc_toolkit::yajrc::RpcError;
|
||||||
@@ -11,6 +12,7 @@ fn inner_main() -> Result<(), Error> {
|
|||||||
command: embassy::main_api,
|
command: embassy::main_api,
|
||||||
app: app => app
|
app: app => app
|
||||||
.name("Embassy CLI")
|
.name("Embassy CLI")
|
||||||
|
.version(Current::new().semver().to_string().as_str())
|
||||||
.arg(
|
.arg(
|
||||||
clap::Arg::with_name("config")
|
clap::Arg::with_name("config")
|
||||||
.short("c")
|
.short("c")
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
use embassy::context::SdkContext;
|
use embassy::context::SdkContext;
|
||||||
use embassy::util::logger::EmbassyLogger;
|
use embassy::util::logger::EmbassyLogger;
|
||||||
|
use embassy::version::{Current, VersionT};
|
||||||
use embassy::Error;
|
use embassy::Error;
|
||||||
use rpc_toolkit::run_cli;
|
use rpc_toolkit::run_cli;
|
||||||
use rpc_toolkit::yajrc::RpcError;
|
use rpc_toolkit::yajrc::RpcError;
|
||||||
@@ -10,6 +11,7 @@ fn inner_main() -> Result<(), Error> {
|
|||||||
command: embassy::portable_api,
|
command: embassy::portable_api,
|
||||||
app: app => app
|
app: app => app
|
||||||
.name("Embassy SDK")
|
.name("Embassy SDK")
|
||||||
|
.version(Current::new().semver().to_string().as_str())
|
||||||
.arg(
|
.arg(
|
||||||
clap::Arg::with_name("config")
|
clap::Arg::with_name("config")
|
||||||
.short("c")
|
.short("c")
|
||||||
|
|||||||
Reference in New Issue
Block a user