Skip to content

Commit 2f8899f

Browse files
authored
Add scope to client docs (#408)
Adds the "scope" attribute to the exported clients, so that they appear in the docstrings of routes that have a scope defined. After running: ``` python generate_base_client.py tox -e docs ``` I checked the html build files and scopes are showing up as expected.
1 parent 62e49c1 commit 2f8899f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

generate_base_client.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,29 @@ def main():
5757

5858
o = subprocess.check_output(
5959
(['python', '-m', 'stone.cli', 'python_client', dropbox_pkg_path] +
60-
specs + ['-a', 'host', '-a', 'style', '-a', 'auth'] +
61-
['--', '-w', 'user,app,noauth', '-m', 'base', '-c', 'DropboxBase', '-t', 'dropbox']))
60+
specs + ['-a', 'host', '-a', 'style', '-a', 'auth', '-a', 'scope'] +
61+
[
62+
'--',
63+
'-w', 'user,app,noauth',
64+
'-m', 'base',
65+
'-c', 'DropboxBase',
66+
'-t', 'dropbox',
67+
'-a', 'scope'
68+
]))
6269
if o:
6370
print('Output:', o)
6471

6572
o = subprocess.check_output(
6673
(['python', '-m', 'stone.cli', 'python_client', dropbox_pkg_path] +
67-
specs + ['-a', 'host', '-a', 'style', '-a', 'auth'] +
68-
['--', '-w', 'team', '-m', 'base_team', '-c', 'DropboxTeamBase', '-t', 'dropbox']))
74+
specs + ['-a', 'host', '-a', 'style', '-a', 'auth', '-a', 'scope'] +
75+
[
76+
'--',
77+
'-w', 'team',
78+
'-m', 'base_team',
79+
'-c', 'DropboxTeamBase',
80+
'-t', 'dropbox',
81+
'-a', 'scope'
82+
]))
6983
if o:
7084
print('Output:', o)
7185

0 commit comments

Comments
 (0)