2022-09-03 21:22:28 +00:00
|
|
|
//! NOTE: Some of these arguments are used by airshipper, so those needs to be
|
|
|
|
//! kept fairly stable (probably with some sort of migration period if we need
|
|
|
|
//! to modify the name or semantics).
|
|
|
|
//!
|
|
|
|
//! The arguments used by airshipper are:
|
|
|
|
//! * `server`
|
|
|
|
//!
|
|
|
|
//! Airshipper should only use arguments listed above! Since we will not try to
|
|
|
|
//! be careful about their stability otherwise.
|
2024-01-29 15:15:19 +00:00
|
|
|
//!
|
|
|
|
//! Likewise Airshipper should only use the following subcommands:
|
|
|
|
//! * `ListWgpuBackends`
|
2024-01-28 17:44:18 +00:00
|
|
|
use clap::{Parser, Subcommand};
|
2022-09-03 21:22:28 +00:00
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
pub struct Args {
|
|
|
|
/// Value to auto-fill into the server field.
|
|
|
|
///
|
|
|
|
/// This allows passing in server selection performed in airshipper.
|
|
|
|
#[clap(short, long)]
|
|
|
|
pub server: Option<String>,
|
2024-01-28 17:44:18 +00:00
|
|
|
|
|
|
|
#[clap(subcommand)]
|
|
|
|
pub command: Option<Commands>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Subcommand)]
|
|
|
|
pub enum Commands {
|
2024-01-29 15:15:19 +00:00
|
|
|
/// List available wgpu backends. This is called by Airshipper to show a
|
2024-01-29 17:02:10 +00:00
|
|
|
/// dropbox of available backends.
|
2024-01-29 15:15:19 +00:00
|
|
|
ListWgpuBackends,
|
2022-09-03 21:22:28 +00:00
|
|
|
}
|