Browse Source

Hide is_imported from shellfu()

This was never intended to be public (and never documented).
Alois Mahdal 9 years ago
parent
commit
9e4be6a351
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      src/shellfu.sh.skel

+ 8
- 8
src/shellfu.sh.skel View File

125
             # Import module named $2
125
             # Import module named $2
126
             #
126
             #
127
             local mname=$2
127
             local mname=$2
128
-            shellfu is_imported "$mname" && return 0
128
+            shellfu _is_imported "$mname" && return 0
129
             if shellfu _do_import "$mname";
129
             if shellfu _do_import "$mname";
130
             then
130
             then
131
                 SHELLFU_IMPORTED="$SHELLFU_IMPORTED${SHELLFU_IMPORTED:+:}$mname"
131
                 SHELLFU_IMPORTED="$SHELLFU_IMPORTED${SHELLFU_IMPORTED:+:}$mname"
140
             local mname=$2
140
             local mname=$2
141
             ( shellfu _do_import "$mname" )
141
             ( shellfu _do_import "$mname" )
142
             ;;
142
             ;;
143
-        is_imported)
144
-            #
145
-            # True if module $2 is already imported
146
-            #
147
-            local mname=$2
148
-            echo "$SHELLFU_IMPORTED" | tr : \\n | grep -qx "$mname"
149
-            ;;
150
 
143
 
151
         _do_import)
144
         _do_import)
152
             #
145
             #
176
             fi
169
             fi
177
             return $es
170
             return $es
178
             ;;
171
             ;;
172
+        _is_imported)
173
+            #
174
+            # True if module $2 is already imported
175
+            #
176
+            local mname=$2
177
+            echo "$SHELLFU_IMPORTED" | tr : \\n | grep -qx "$mname"
178
+            ;;
179
 
179
 
180
         _list_mfiles)
180
         _list_mfiles)
181
             #
181
             #