mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-29 03:05:05 +00:00
io/ipchandler: add prop get
This commit is contained in:
10 files changed
+262
-31
No files matched your search
@@ -194,6 +194,18 @@ int parseCommand(int argc, char** argv, CommandState& state) {
|
||||
->description("Arguments to the called function.")
|
||||
->allow_extra_args();
|
||||
}
|
||||
|
||||
{
|
||||
auto* prop =
|
||||
sub->add_subcommand("prop", "Manipulate IpcHandler properties.")->require_subcommand();
|
||||
|
||||
{
|
||||
auto* get = prop->add_subcommand("get", "Read the value of a property.");
|
||||
state.ipc.getprop = get;
|
||||
get->add_option("target", state.ipc.target, "The target to read the property of.");
|
||||
get->add_option("property", state.ipc.name)->description("The property to read.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user