Skip to content

Commit

Permalink
Merge pull request #1870 from alan-turing-institute/commands_restructure
Browse files Browse the repository at this point in the history
Restructure commands
  • Loading branch information
JimMadge authored May 10, 2024
2 parents 5acf30e + 7fee14f commit 36c4f78
Show file tree
Hide file tree
Showing 13 changed files with 415 additions and 492 deletions.
89 changes: 0 additions & 89 deletions data_safe_haven/commands/admin.py

This file was deleted.

36 changes: 0 additions & 36 deletions data_safe_haven/commands/admin_add_users.py

This file was deleted.

30 changes: 0 additions & 30 deletions data_safe_haven/commands/admin_list_users.py

This file was deleted.

55 changes: 0 additions & 55 deletions data_safe_haven/commands/admin_register_users.py

This file was deleted.

33 changes: 0 additions & 33 deletions data_safe_haven/commands/admin_remove_users.py

This file was deleted.

59 changes: 0 additions & 59 deletions data_safe_haven/commands/admin_unregister_users.py

This file was deleted.

24 changes: 12 additions & 12 deletions data_safe_haven/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from data_safe_haven.exceptions import DataSafeHavenError
from data_safe_haven.utility import LoggingSingleton

from .admin import admin_command_group
from .config import config_command_group
from .context import context_command_group
from .deploy import deploy_command_group
from .teardown import teardown_command_group
from .shm import shm_command_group
from .sre import sre_command_group
from .users import users_command_group

# Create the application
application = typer.Typer(
Expand Down Expand Up @@ -64,9 +64,9 @@ def callback(

# Register command groups
application.add_typer(
admin_command_group,
name="admin",
help="Perform administrative tasks for a Data Safe Haven deployment.",
users_command_group,
name="users",
help="Manage the users of a Data Safe Haven deployment.",
)
application.add_typer(
config_command_group,
Expand All @@ -77,14 +77,14 @@ def callback(
context_command_group, name="context", help="Manage Data Safe Haven contexts."
)
application.add_typer(
deploy_command_group,
name="deploy",
help="Deploy a Data Safe Haven component.",
shm_command_group,
name="shm",
help="Manage Data Safe Haven SHM infrastructure.",
)
application.add_typer(
teardown_command_group,
name="teardown",
help="Tear down a Data Safe Haven component.",
sre_command_group,
name="sre",
help="Manage Data Safe Haven SRE infrastructure.",
)


Expand Down
Loading

0 comments on commit 36c4f78

Please sign in to comment.