Add entry_point during setup

Change-Id: Ic929dbd053ff99a91ef71870c1b01fa0ee2bb17e
This commit is contained in:
Stephen Lowrie 2016-03-16 16:18:10 -05:00
parent a35b727169
commit abb45d2e41
2 changed files with 9 additions and 0 deletions

View File

@ -745,3 +745,9 @@ def parse_cli_args(args=None):
parser_sign.set_defaults(func='self_sign')
return parser.parse_args(args=args)
def entry_point():
args = parse_cli_args()
test = RefstackClient(args)
raise SystemExit(getattr(test, args.func)())

View File

@ -26,3 +26,6 @@ packages =
setup-hooks =
pbr.hooks.setup_hook
[entry_points]
console_scripts =
refstack-client = refstack_client.refstack_client:entry_point