Skip to content

Commit

Permalink
refactor: renaming management to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Jun 16, 2023
1 parent 06e396a commit 47c37d1
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion biothings/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
sys.path.insert(0, path)

if __name__ == "__main__":
from biothings.management.cli import main
from biothings.cli import main

sys.exit(main())
2 changes: 1 addition & 1 deletion biothings/management/cli.py → biothings/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def main():

setup_config()
from .dataplugin import app as dataplugin_app
from .dataplugin_localhub import app as dataplugin_localhub_app
from .dataplugin_hub import app as dataplugin_localhub_app

cli.add_typer(dataplugin_app, name="dataplugin")
cli.add_typer(dataplugin_localhub_app, name="dataplugin-hub")
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from rich import print as rprint
from typing_extensions import Annotated

from biothings.management import utils
from biothings.cli import utils

logger = utils.get_logger("dataplugin")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typer
from typing_extensions import Annotated

from biothings.management import utils
from biothings.cli import utils

logger = utils.get_logger("dataplugin-hub")

Expand Down
File renamed without changes.
File renamed without changes.
Empty file removed biothings/management/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ def read(fname):
"dev": web_extra_requires + hub_requires + cli_requires + docker_requires + dev_requires + docs_requires,
},
entry_points={
"console_scripts": ["biothings-cli=biothings.management.cli:main"],
"console_scripts": ["biothings-cli=biothings.cli:main"],
},
)

0 comments on commit 47c37d1

Please sign in to comment.