Skip to content

Commit 6632529

Browse files
committed
Only check for alias when running plain dev command
1 parent d913b44 commit 6632529

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plain-dev/plain/dev/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class DevGroup(click.Group):
1919

2020
def __init__(self, *args, **kwargs):
2121
super().__init__(*args, **kwargs)
22-
AliasManager().check_and_prompt()
2322
self._auto_start_services()
2423

2524
@staticmethod
@@ -121,7 +120,6 @@ def _auto_start_services():
121120
)
122121
def cli(ctx, port, hostname, log_level, start, stop):
123122
"""Start local development"""
124-
125123
if ctx.invoked_subcommand:
126124
return
127125

@@ -172,6 +170,9 @@ def cli(ctx, port, hostname, log_level, start, stop):
172170
)
173171
return
174172

173+
# Check and prompt for alias setup
174+
AliasManager().check_and_prompt()
175+
175176
dev.setup(port=port, hostname=hostname, log_level=log_level)
176177
returncode = dev.run()
177178
if returncode:

0 commit comments

Comments
 (0)