Skip to content

Commit

Permalink
renaming exec to shell
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Feb 27, 2024
1 parent f9f8d7a commit f742aad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/slurminade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def clean_up():
"""

# flake8: noqa F401
from .function import slurmify
from .function import slurmify, shell
from .conf import update_default_configuration, set_default_configuration
from .guard import (
set_dispatch_limit,
Expand Down Expand Up @@ -94,6 +94,7 @@ def clean_up():
"TestDispatcher",
"SubprocessDispatcher",
"set_entry_point",
"shell",
"node_setup",
]

Expand Down
2 changes: 1 addition & 1 deletion src/slurminade/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def dec(func) -> SlurmFunction:


@slurmify()
def exec(cmd: typing.Union[str, typing.List[str]]):
def shell(cmd: typing.Union[str, typing.List[str]]):
"""
Execute a command.
:param cmd: The command to be executed.
Expand Down

0 comments on commit f742aad

Please sign in to comment.