@raphiiko/wavelink-cli 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
- package/src/index.ts +22 -0
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ wavelink-cli output set-volume <output-id> <volume>
|
|
|
50
50
|
# Mute/Unmute
|
|
51
51
|
wavelink-cli output mute <output-id>
|
|
52
52
|
wavelink-cli output unmute <output-id>
|
|
53
|
+
wavelink-cli output toggle-mute <output-id>
|
|
53
54
|
```
|
|
54
55
|
|
|
55
56
|
### Mixes
|
|
@@ -113,6 +114,7 @@ wavelink-cli input set-gain <input-id> <gain>
|
|
|
113
114
|
# Mute/Unmute
|
|
114
115
|
wavelink-cli input mute <input-id>
|
|
115
116
|
wavelink-cli input unmute <input-id>
|
|
117
|
+
wavelink-cli input toggle-mute <input-id>
|
|
116
118
|
```
|
|
117
119
|
|
|
118
120
|
### General
|
package/dist/index.js
CHANGED
|
@@ -5699,6 +5699,10 @@ outputCmd.command("set-volume").description("Set output device volume").addArgum
|
|
|
5699
5699
|
});
|
|
5700
5700
|
outputCmd.command("mute").description("Mute an output device").addArgument(new Argument("<output-id>", "ID of the output device")).action((outputId) => withClient((client) => setOutputMute(client, outputId, true)));
|
|
5701
5701
|
outputCmd.command("unmute").description("Unmute an output device").addArgument(new Argument("<output-id>", "ID of the output device")).action((outputId) => withClient((client) => setOutputMute(client, outputId, false)));
|
|
5702
|
+
outputCmd.command("toggle-mute").description("Toggle output device mute state").addArgument(new Argument("<output-id>", "ID of the output device")).action((outputId) => withClient(async (client) => {
|
|
5703
|
+
const output = await requireOutput(client, outputId);
|
|
5704
|
+
await setOutputMute(client, outputId, !output.isMuted);
|
|
5705
|
+
}));
|
|
5702
5706
|
var mixCmd = program2.command("mix").description("Manage mixes");
|
|
5703
5707
|
mixCmd.command("list").description("List all mixes with their IDs and names").action(() => withClient(listMixes));
|
|
5704
5708
|
mixCmd.command("set-output").description("Set a device as the ONLY output for a mix (removes all other outputs from that mix)").addArgument(new Argument("<mix-id-or-name>", "ID or name of the mix (case-insensitive)")).addArgument(new Argument("<output-id>", "ID of the output device")).action((mixId, outputId) => withClient((client) => setSingleOutputForMix(client, outputId, mixId)));
|
|
@@ -5823,4 +5827,8 @@ inputCmd.command("set-gain").description("Set input device gain").addArgument(ne
|
|
|
5823
5827
|
});
|
|
5824
5828
|
inputCmd.command("mute").description("Mute an input device").addArgument(new Argument("<input-id>", "ID of the input device")).action((inputId) => withClient((client) => setInputMute(client, inputId, true)));
|
|
5825
5829
|
inputCmd.command("unmute").description("Unmute an input device").addArgument(new Argument("<input-id>", "ID of the input device")).action((inputId) => withClient((client) => setInputMute(client, inputId, false)));
|
|
5830
|
+
inputCmd.command("toggle-mute").description("Toggle input device mute state").addArgument(new Argument("<input-id>", "ID of the input device")).action((inputId) => withClient(async (client) => {
|
|
5831
|
+
const input = await requireInput(client, inputId);
|
|
5832
|
+
await setInputMute(client, inputId, !input.isMuted);
|
|
5833
|
+
}));
|
|
5826
5834
|
await program2.parseAsync();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -457,6 +457,17 @@ outputCmd
|
|
|
457
457
|
.addArgument(new Argument("<output-id>", "ID of the output device"))
|
|
458
458
|
.action((outputId: string) => withClient((client) => setOutputMute(client, outputId, false)));
|
|
459
459
|
|
|
460
|
+
outputCmd
|
|
461
|
+
.command("toggle-mute")
|
|
462
|
+
.description("Toggle output device mute state")
|
|
463
|
+
.addArgument(new Argument("<output-id>", "ID of the output device"))
|
|
464
|
+
.action((outputId: string) =>
|
|
465
|
+
withClient(async (client) => {
|
|
466
|
+
const output = await requireOutput(client, outputId);
|
|
467
|
+
await setOutputMute(client, outputId, !output.isMuted);
|
|
468
|
+
})
|
|
469
|
+
);
|
|
470
|
+
|
|
460
471
|
// Mix commands
|
|
461
472
|
const mixCmd = program.command("mix").description("Manage mixes");
|
|
462
473
|
|
|
@@ -737,4 +748,15 @@ inputCmd
|
|
|
737
748
|
.addArgument(new Argument("<input-id>", "ID of the input device"))
|
|
738
749
|
.action((inputId: string) => withClient((client) => setInputMute(client, inputId, false)));
|
|
739
750
|
|
|
751
|
+
inputCmd
|
|
752
|
+
.command("toggle-mute")
|
|
753
|
+
.description("Toggle input device mute state")
|
|
754
|
+
.addArgument(new Argument("<input-id>", "ID of the input device"))
|
|
755
|
+
.action((inputId: string) =>
|
|
756
|
+
withClient(async (client) => {
|
|
757
|
+
const input = await requireInput(client, inputId);
|
|
758
|
+
await setInputMute(client, inputId, !input.isMuted);
|
|
759
|
+
})
|
|
760
|
+
);
|
|
761
|
+
|
|
740
762
|
await program.parseAsync();
|