1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// nixos-config - My current NixOS configuration
//
// Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
// SPDX-License-Identifier: GPL-3.0-or-later
//
// This file is part of my nixos-config.
//
// You should have received a copy of the License along with this program.
// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
use std::path::PathBuf;
use clap::Parser;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
/// A tool to manage your key mappings for the river window manager
pub(super) struct Args {
#[command(subcommand)]
pub command: SubCommand,
#[arg(long, short)]
/// Path to mapping config JSON file
pub keymap: PathBuf,
}
#[derive(clap::Subcommand, Clone, Debug)]
pub(super) enum SubCommand {
Init {
#[arg(short, long, default_value_t = false)]
/// Only show what would be done, don't actually perform the init.
dry_run: bool,
},
ShowHelp {},
}
|