From 2a0a46a0426ed52abef5deb675e6782bea573289 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Wed, 25 Sep 2024 11:46:44 +0200 Subject: [PATCH] also allow arguments --- src/bin/noise | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/noise b/src/bin/noise index 3857527..46832ee 100755 --- a/src/bin/noise +++ b/src/bin/noise @@ -118,16 +118,18 @@ def "main search" [--field(-f): string=any # Field to query # Insert uri after currently playing song def "main insert" [ --host(-H): string # mpd host + , ...uri: string # URI to insert ] { let host = getHost $host - $in | mpc insert --host $host + $in | mpc insert --host $host ($uri | str join " ") } # Adds uri to the end of current que def "main add" [ --host(-H): string # mpd host + , ...uri: string # URI to add ] { let host = getHost $host - $in | mpc add --host $host + $in | mpc add --host $host ($uri | str join " ") } # Direct wrapper around 'mpc crossfade'