Procházet zdrojové kódy

Fork _list_functions_in for narrow listing

Alois Mahdal před 10 roky
rodič
revize
871dfdf23f
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8
    1
      ffoo.sh.in

+ 8
- 1
ffoo.sh.in Zobrazit soubor

@@ -53,10 +53,14 @@ ffoo() {
53 53
             local mod=$(ffoo _parse_fspec_to_mod "$2")
54 54
             echo "${2##$mod.}"
55 55
             ;;
56
-        _parse_path_to_fnlist)
56
+        _parse_path_to_fspeclist)
57 57
             grep -HE '^[[:alnum:]_]+\(\) \{' "$2" \
58 58
               | sed -e 's/^.*\///; s/\.sh:/./; s/(.*//'
59 59
             ;;
60
+        _parse_path_to_fnlist)
61
+            grep -E '^[[:alnum:]_]+\(\) \{' "$2" \
62
+              | sed -e 's/^.*\///; s/(.*//'
63
+            ;;
60 64
 
61 65
         _cat_function)
62 66
             local mod=$(ffoo _parse_fspec_to_mod "$2")
@@ -101,6 +105,9 @@ ffoo() {
101 105
             ffoo _list_mfiles $2 | head -1
102 106
             ;;
103 107
         _list_functions)
108
+            ffoo _list_mfiles "$2" | ffoo _parse path fspeclist
109
+            ;;
110
+        _list_functions_in)
104 111
             ffoo _list_mfiles "$2" | ffoo _parse path fnlist
105 112
             ;;
106 113