-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c41412e
commit cecf256
Showing
4 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import click | ||
|
||
# Temp for local import | ||
# import sys | ||
# sys.path.append('../') | ||
# import gen3users.gen3users.main as users_cli | ||
|
||
# Use this after gen3users merge | ||
from gen3users import main as users_cli | ||
|
||
# import gen3users as users_cli | ||
|
||
|
||
# Do we need these? | ||
try: | ||
from importlib.metadata import entry_points | ||
except ImportError: | ||
from importlib_metadata import entry_points | ||
|
||
|
||
@click.group() | ||
def main(): | ||
"""Gen3 Command Line Interface""" | ||
pass | ||
|
||
|
||
@click.group() | ||
def users(): | ||
"""Commands for working with gen3users""" | ||
pass | ||
|
||
|
||
# for command in users_cli.main.commands: | ||
for command in users_cli.main.commands: | ||
users.add_command(users_cli.main.get_command(ctx=None, cmd_name=command)) | ||
|
||
# load plug-ins from entry_points | ||
for ep in entry_points().get("gen3.plugins", []): | ||
ep.load() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters