Skip to content

Commit

Permalink
feat: rename machine -> runners (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Dec 13, 2024
1 parent 9ec63ed commit c533747
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions projects/fal/src/fal/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fal.console import console
from fal.console.icons import CROSS_ICON

from . import apps, auth, create, deploy, doctor, keys, machine, run, secrets
from . import apps, auth, create, deploy, doctor, keys, run, runners, secrets
from .debug import debugtools, get_debug_parser
from .parser import FalParser, FalParserExit

Expand All @@ -31,7 +31,7 @@ def _get_main_parser() -> argparse.ArgumentParser:
required=True,
)

for cmd in [auth, apps, deploy, run, keys, secrets, doctor, create, machine]:
for cmd in [auth, apps, deploy, run, keys, secrets, doctor, create, runners]:
cmd.add_parser(subparsers, parents)

return parser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _kill(args):


def _add_kill_parser(subparsers, parents):
kill_help = "Kill a machine."
kill_help = "Kill a runner."
parser = subparsers.add_parser(
"kill",
description=kill_help,
Expand All @@ -25,12 +25,13 @@ def _add_kill_parser(subparsers, parents):


def add_parser(main_subparsers, parents):
machine_help = "Manage fal machines."
runners_help = "Manage fal runners."
parser = main_subparsers.add_parser(
"machine",
description=machine_help,
help=machine_help,
"runners",
description=runners_help,
help=runners_help,
parents=parents,
aliases=["machine"], # backwards compatibility
)

subparsers = parser.add_subparsers(
Expand Down

0 comments on commit c533747

Please sign in to comment.