This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/main by this push:
     new 94857fb  YETUS-1099. shelldocs --lint option fails (#212)
94857fb is described below

commit 94857fb27ccb3b3522eaaaff1abcb28f999c49ac
Author: Akira Ajisaka <[email protected]>
AuthorDate: Mon Feb 8 11:27:45 2021 +0900

    YETUS-1099. shelldocs --lint option fails (#212)
    
    Signed-off-by: Sean Busbey <[email protected]>
    Signed-off-by: Allen Wittenauer <[email protected]>
---
 shelldocs/src/main/python/shelldocs.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/shelldocs/src/main/python/shelldocs.py 
b/shelldocs/src/main/python/shelldocs.py
index c9e7d9c..3660e3b 100755
--- a/shelldocs/src/main/python/shelldocs.py
+++ b/shelldocs/src/main/python/shelldocs.py
@@ -177,6 +177,10 @@ class ShellFunction:  # pylint: 
disable=too-many-public-methods, too-many-instan
             return "Yes"
         return "No"
 
+    def getreplacetext(self):
+        '''get the replacement state text'''
+        return self.replacetext
+
     def getinter(self):
         '''get the function state'''
         return self.getaudience(), self.getstability(), self.getreplace()
@@ -261,7 +265,7 @@ class ShellFunction:  # pylint: 
disable=too-many-public-methods, too-many-instan
         getfuncs = {
             "audience": self.getaudience,
             "stability": self.getstability,
-            "replaceable": self.replacetext,
+            "replaceable": self.getreplacetext,
         }
         validvalues = {
             "audience": ("Public", "Private"),

Reply via email to