cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

market.rs (386B)


      1 use clap::{Args, Subcommand};
      2 
      3 use crate::cli::listing::LookupArgs;
      4 
      5 #[derive(Debug, Clone, Args)]
      6 pub struct MarketArgs {
      7     #[command(subcommand)]
      8     pub command: MarketCommand,
      9 }
     10 
     11 #[derive(Debug, Clone, Subcommand)]
     12 pub enum MarketCommand {
     13     Pull,
     14     Search(QueryArgs),
     15     Get(LookupArgs),
     16 }
     17 
     18 #[derive(Debug, Clone, Args)]
     19 pub struct QueryArgs {
     20     pub query: Vec<String>,
     21 }