-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
das-toolbox-125: Group commands to dbms-adapter
- Loading branch information
1 parent
5d12f56
commit 4c68c10
Showing
13 changed files
with
80 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .dbms_adapter_module import DbmsAdapterModule | ||
|
||
__all__ = ["DbmsAdapterModule"] |
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,3 @@ | ||
from .das_peer_cli import DasPeerCli | ||
|
||
__all__ = ["DasPeerCli"] |
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
File renamed without changes.
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,42 @@ | ||
from injector import inject | ||
|
||
from common import CommandGroup | ||
from .das_peer.das_peer_cli import DasPeerCli | ||
from .dbms_peer.dbms_peer_cli import DbmsPeerCli | ||
|
||
|
||
class DbmsAdapterCli(CommandGroup): | ||
name = "dbms-adapter" | ||
|
||
short_help = "Groups DBMS and DAS peer server commands for easier management." | ||
|
||
help = """ | ||
The 'dbms-adapter' command group provides functionalities for managing both the DAS peer server | ||
and DBMS peer client commands. It allows for organizing and executing operations related to | ||
connecting a DBMS client to the DAS peer server. | ||
This command group includes: | ||
- 'das-peer': Manages DAS peer server operations. | ||
- 'dbms-peer': Manages DBMS peer client operations. | ||
.SH EXAMPLES | ||
To view all commands available in the dbms-adapter group: | ||
$ das-cli dbms-adapter --help | ||
""" | ||
|
||
@inject | ||
def __init__( | ||
self, | ||
das_peer_cli: DasPeerCli, | ||
dbms_peer: DbmsPeerCli, | ||
) -> None: | ||
super().__init__() | ||
self.add_commands( | ||
[ | ||
das_peer_cli.group, | ||
dbms_peer.group, | ||
] | ||
) |
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,3 @@ | ||
from .dbms_peer_cli import DbmsPeerCli | ||
|
||
__all__ = ["DbmsPeerCli"] |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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