forge
Explore
Log in

Don't you dare go Hollow

Rearrange CLI subcommands a bit

Browse files at this commit

4dc7a6ceb80dfa8ac04ee9ca44a599405493f6cbIvan MolodetskikhParent: 36d3e70
src/cli.rsmodified+10 -10
@@ -32,12 +32,6 @@ pub struct Cli {
3232
3333 #[derive(Subcommand)]
3434 pub enum Sub {
35- /// Validate the config file.
36- Validate {
37- /// Path to config file (default: `$XDG_CONFIG_HOME/niri/config.kdl`).
38- #[arg(short, long)]
39- config: Option<PathBuf>,
40- },
4135 /// Communicate with the running niri instance.
4236 Msg {
4337 #[command(subcommand)]
@@ -46,16 +40,22 @@ pub enum Sub {
4640 #[arg(short, long)]
4741 json: bool,
4842 },
43+ /// Validate the config file.
44+ Validate {
45+ /// Path to config file (default: `$XDG_CONFIG_HOME/niri/config.kdl`).
46+ #[arg(short, long)]
47+ config: Option<PathBuf>,
48+ },
4949 /// Cause a panic to check if the backtraces are good.
5050 Panic,
5151 }
5252
5353 #[derive(Subcommand)]
5454 pub enum Msg {
55- /// Print the version of the running niri instance.
56- Version,
5755 /// List connected outputs.
5856 Outputs,
57+ /// List workspaces.
58+ Workspaces,
5959 /// Print information about the focused window.
6060 FocusedWindow,
6161 /// Perform an action.
@@ -78,8 +78,8 @@ pub enum Msg {
7878 #[command(subcommand)]
7979 action: OutputAction,
8080 },
81- /// List workspaces.
82- Workspaces,
81+ /// Print the version of the running niri instance.
82+ Version,
8383 /// Request an error from the running niri instance.
8484 RequestError,
8585 }