diff options
| author | Jon Heinritz <jon.heinritz@protonmail.com> | 2025-03-10 21:14:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 20:14:34 +0000 |
| commit | 87b6c1262544a463703a34d8404ef339b7d18536 (patch) | |
| tree | 97334c2dd0de14ec3602096ce806e58b3b048e6d /src/cli.rs | |
| parent | b351f6ff220560d96a260d8dd3ad794000923481 (diff) | |
| download | niri-87b6c1262544a463703a34d8404ef339b7d18536.tar.gz niri-87b6c1262544a463703a34d8404ef339b7d18536.tar.bz2 niri-87b6c1262544a463703a34d8404ef339b7d18536.zip | |
Add Shell completions (#1226)
* feat(cli): add subcommand to generate shell completions
* Update src/cli.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ use std::ffi::OsString; use std::path::PathBuf; use clap::{Parser, Subcommand}; +use clap_complete::Shell; use niri_ipc::{Action, OutputAction}; use crate::utils::version; @@ -54,6 +55,8 @@ pub enum Sub { }, /// Cause a panic to check if the backtraces are good. Panic, + /// Generate shell completions. + Completions { shell: Shell }, } #[derive(Subcommand)] |
