Browse Source

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 5 years ago
parent
commit
812ecb4d43
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      src/include-bash/sfpi.sh
  2. 2
    2
      tests/shellfu_api/oracle/functions.stdout

+ 2
- 2
src/include-bash/sfpi.sh View File

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

+ 2
- 2
tests/shellfu_api/oracle/functions.stdout View File

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