Bläddra i källkod

Rename name-access functions to be less confusing

You can't "get function" or "get module" with these functions; just
their *names*.  Also "get" is inconsistent with eg.  sfpi__ls() and
sfpi__key(): the "getting" part is implied.
Alois Mahdal 7 år sedan
förälder
incheckning
812ecb4d43
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 2
    2
      src/include-bash/sfpi.sh
  2. 2
    2
      tests/shellfu_api/oracle/functions.stdout

+ 2
- 2
src/include-bash/sfpi.sh Visa fil

122
     shellfu import "$mod"
122
     shellfu import "$mod"
123
 }
123
 }
124
 
124
 
125
-sfpi__get_fun() {
125
+sfpi__funname() {
126
     #
126
     #
127
     # Print name of plugin $1 function $2
127
     # Print name of plugin $1 function $2
128
     #
128
     #
132
     echo "${SFPI__PREFIX}_${plg}__$fun"
132
     echo "${SFPI__PREFIX}_${plg}__$fun"
133
 }
133
 }
134
 
134
 
135
-sfpi__get_mod() {
135
+sfpi__modname() {
136
     #
136
     #
137
     # Print name of module implementing plugin $1
137
     # Print name of module implementing plugin $1
138
     #
138
     #

+ 2
- 2
tests/shellfu_api/oracle/functions.stdout Visa fil

93
 sfdoc:sfdoc__ls_m
93
 sfdoc:sfdoc__ls_m
94
 sfpi:__sfpi__ckpfx
94
 sfpi:__sfpi__ckpfx
95
 sfpi:sfpi__call
95
 sfpi:sfpi__call
96
-sfpi:sfpi__get_fun
97
-sfpi:sfpi__get_mod
96
+sfpi:sfpi__funname
98
 sfpi:sfpi__has
97
 sfpi:sfpi__has
99
 sfpi:sfpi__import
98
 sfpi:sfpi__import
100
 sfpi:sfpi__is_compat
99
 sfpi:sfpi__is_compat
101
 sfpi:sfpi__key
100
 sfpi:sfpi__key
102
 sfpi:sfpi__ls
101
 sfpi:sfpi__ls
103
 sfpi:sfpi__ls_all
102
 sfpi:sfpi__ls_all
103
+sfpi:sfpi__modname