Skip to content

Commit

Permalink
rename internal vars for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Bock committed Feb 10, 2019
1 parent 767ed4f commit eaa388d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion oktacli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .cli import cli
from .cli import cli_main
4 changes: 2 additions & 2 deletions oktacli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .cli import cli
from .cli import cli_main


if __name__ == "__main__":
cli()
cli_main()
14 changes: 7 additions & 7 deletions oktacli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def users_add(set_fields, read_csv, activate, provider, nextlogin):


@click.group(context_settings=CONTEXT_SETTINGS)
def cli():
def cli_main():
"""
Okta CLI helper.
Expand All @@ -618,14 +618,14 @@ def cli():
pass


@cli.command(name="version", context_settings=CONTEXT_SETTINGS)
@cli_main.command(name="version", context_settings=CONTEXT_SETTINGS)
def cli_version():
"""Prints version number and exit"""
print(VERSION)


cli.add_command(cli_config)
cli.add_command(cli_users)
cli.add_command(cli_pw)
cli.add_command(cli_groups)
cli.add_command(cli_apps)
cli_main.add_command(cli_config)
cli_main.add_command(cli_users)
cli_main.add_command(cli_pw)
cli_main.add_command(cli_groups)
cli_main.add_command(cli_apps)
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from oktacli import cli
from oktacli import cli_main


if __name__ == "__main__":
cli()
cli_main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run(self):
# py_modules=['mypackage'],

entry_points={
'console_scripts': ['okta-cli=oktacli:cli'],
'console_scripts': ['okta-cli=oktacli:cli_main'],
},
install_requires=REQUIRED,
extras_require=EXTRAS,
Expand Down

0 comments on commit eaa388d

Please sign in to comment.