ソースを参照

Let pod list grep without external pipe

Samuel W. Flint 1 年間 前
コミット
c40b12b67b
1 ファイル変更10 行追加2 行削除
  1. 10 2
      pod

+ 10 - 2
pod

@@ -88,11 +88,19 @@ case "$CMD" in
         exit
         ;;
     list)
-        find_unlistened --in=here
+        if [ $# -lt 1 ] ; then
+            find_unlistened --in=here
+        else
+            find_unlistened --in=here | grep $@
+        fi
         exit
         ;;
     list-all)
-        find_unlistened
+        if [ $# -lt 1 ] ; then
+            find_unlistened
+        else
+            find_unlistened | grep $@
+        fi
         exit
         ;;
     play)