pace_rs/commands/settings.rs
1//! `settings` subcommand
2
3/// Getters for the `settings` subcommand
4pub mod get;
5/// Setters for the `settings` subcommand
6pub mod set;
7
8use abscissa_core::{Command, Runnable};
9use clap::{Parser, Subcommand};
10
11/// `settings` (sub-) subcommand
12#[derive(Subcommand, Command, Debug, Runnable)]
13pub enum SettingsSubCmd {
14 /// Set values in the pace configuration
15 #[clap(visible_alias = "s")]
16 Set(set::SetChoiceCmd),
17
18 /// Get values from the pace configuration
19 #[clap(visible_alias = "g")]
20 Get(get::GetChoiceCmd),
21}
22
23/// `settings` subcommand
24#[derive(Command, Debug, Parser, Runnable)]
25pub struct SettingsCmd {
26 #[clap(subcommand)]
27 commands: SettingsSubCmd,
28}
29
30// `pace settings`