mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
20 lines
434 B
Rust
20 lines
434 B
Rust
use clap::{command, Parser, Subcommand};
|
|
|
|
#[derive(Parser)]
|
|
#[command(name = "ya",version, about, long_about = None)]
|
|
#[command(propagate_version = true)]
|
|
pub(super) struct Args {
|
|
#[command(subcommand)]
|
|
pub(super) command: Command,
|
|
}
|
|
|
|
#[derive(Subcommand)]
|
|
pub(super) enum Command {
|
|
/// Send a message to remote instances.
|
|
Send(CommandSend),
|
|
}
|
|
|
|
#[derive(clap::Args)]
|
|
pub(super) struct CommandSend {
|
|
pub(super) message: String,
|
|
}
|