Skip to content

Commit

Permalink
walk the tree correctly for --dump option
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Oct 19, 2016
1 parent 3e177cf commit 6655fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ def walk(m, s):
continue
a = getattr(m, n)
d = dir(a)
if 'delete' in d or 'get' in d or 'patch' in d or 'post' in d or 'put' in d:
if '_base' in d:
# it's a known api call - lets print it and continue down the tree
print s + '/' + n
if 'delete' in d or 'get' in d or 'patch' in d or 'post' in d or 'put' in d:
# only print if a call exists for this part
print s + '/' + n
walk(a, s + '/' + n)

def dump_commands(cf):
Expand Down

0 comments on commit 6655fee

Please sign in to comment.