diff options
| author | sodiboo <37938646+sodiboo@users.noreply.github.com> | 2024-04-19 15:02:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 13:02:32 +0000 |
| commit | b5f7e4bd83dbfc77e0c8b973bc217c9a4cb3f364 (patch) | |
| tree | dbe59c9a19f2e7d94086e9fbb1c28a43e062e16b /src/cli.rs | |
| parent | b98b95883def5cd726c1e96a006f9cd7498d1730 (diff) | |
| download | niri-b5f7e4bd83dbfc77e0c8b973bc217c9a4cb3f364.tar.gz niri-b5f7e4bd83dbfc77e0c8b973bc217c9a4cb3f364.tar.bz2 niri-b5f7e4bd83dbfc77e0c8b973bc217c9a4cb3f364.zip | |
`niri_ipc::Socket`; `niri msg version`; version checking on IPC (#278)
* Implement version checking in IPC
implement version checking; streamed IPC
streamed IPC will allow multiple requests per connection
add nonsense request
change inline struct to json macro
only check version if request actually fails
fix usage of inspect_err (MSRV 1.72.0; stabilized 1.76.0)
"nonsense request" -> "return error"
oneshot connections
* Change some things around
* Unqualify niri_ipc::Transform
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -52,6 +52,8 @@ pub enum Sub { #[derive(Subcommand)] pub enum Msg { + /// Print the version of the running niri instance. + Version, /// List connected outputs. Outputs, /// Print information about the focused window. @@ -61,4 +63,6 @@ pub enum Msg { #[command(subcommand)] action: Action, }, + /// Request an error from the running niri instance. + RequestError, } |
