Skip to content

Commit

Permalink
Restructure ctrl
Browse files Browse the repository at this point in the history
- Package ctrl
- Split into collection, mix, common
- Hide non-relevant via __ALL__
- Add some missing docstrings
- Sort imports
  • Loading branch information
JOJ0 committed Nov 2, 2024
1 parent d235160 commit 118ce43
Show file tree
Hide file tree
Showing 11 changed files with 427 additions and 399 deletions.
4 changes: 2 additions & 2 deletions discodos/cmd23/import_.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
import click
from click_option_group import optgroup, MutuallyExclusiveOptionGroup
import logging

from discodos.ctrls import Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
5 changes: 2 additions & 3 deletions discodos/cmd23/ls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import click
import logging

from discodos.ctrls import Coll_ctrl_cli
import click
from discodos.ctrl import Coll_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
6 changes: 3 additions & 3 deletions discodos/cmd23/mix.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import click
from click_option_group import optgroup, MutuallyExclusiveOptionGroup
import logging
import click
from click_option_group import MutuallyExclusiveOptionGroup, optgroup

from discodos.ctrls import Mix_ctrl_cli, Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli, Mix_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
4 changes: 2 additions & 2 deletions discodos/cmd23/search.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
import click
from click_option_group import optgroup, MutuallyExclusiveOptionGroup
import logging

from discodos.ctrls import Mix_ctrl_cli, Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli, Mix_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
4 changes: 2 additions & 2 deletions discodos/cmd23/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import click
import logging
import click

from discodos.config import Db_setup
from discodos.ctrls import Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
4 changes: 2 additions & 2 deletions discodos/cmd23/stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import click
import logging
import click

from discodos.ctrls import Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
4 changes: 2 additions & 2 deletions discodos/cmd23/suggest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import click
import logging
import click

from discodos.ctrls import Coll_ctrl_cli
from discodos.ctrl import Coll_ctrl_cli

log = logging.getLogger('discodos')

Expand Down
7 changes: 7 additions & 0 deletions discodos/ctrl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from discodos.ctrl.collection import Coll_ctrl_cli
from discodos.ctrl.mix import Mix_ctrl_cli

__ALL__ = [
Coll_ctrl_cli,
Mix_ctrl_cli
]
Loading

0 comments on commit 118ce43

Please sign in to comment.