debug command

This commit is contained in:
Xi Yan 2025-01-14 15:44:21 -08:00
parent 63b0a40317
commit 7f5829036c
2 changed files with 2 additions and 7 deletions

View file

@ -179,9 +179,7 @@ class StackBuild(Subcommand):
build_config = BuildConfig( build_config = BuildConfig(
name=name, image_type=image_type, distribution_spec=distribution_spec name=name, image_type=image_type, distribution_spec=distribution_spec
) )
self._run_stack_build_command_from_build_config( self._run_stack_build_command_from_build_config(build_config)
build_config,
)
return return
with open(args.config, "r") as f: with open(args.config, "r") as f:
@ -190,9 +188,7 @@ class StackBuild(Subcommand):
except Exception as e: except Exception as e:
self.parser.error(f"Could not parse config file {args.config}: {e}") self.parser.error(f"Could not parse config file {args.config}: {e}")
return return
self._run_stack_build_command_from_build_config( self._run_stack_build_command_from_build_config(build_config)
build_config,
)
def _generate_run_config(self, build_config: BuildConfig, build_dir: Path) -> None: def _generate_run_config(self, build_config: BuildConfig, build_dir: Path) -> None:
""" """

View file

@ -36,7 +36,6 @@ def run_with_pty(command):
# Set up the signal handler # Set up the signal handler
signal.signal(signal.SIGINT, sigint_handler) signal.signal(signal.SIGINT, sigint_handler)
# Only modify terminal settings if we're actually in a terminal
new_settings = termios.tcgetattr(sys.stdin) new_settings = termios.tcgetattr(sys.stdin)
new_settings[3] = new_settings[3] & ~termios.ECHO # Disable echo new_settings[3] = new_settings[3] & ~termios.ECHO # Disable echo
new_settings[3] = new_settings[3] & ~termios.ICANON # Disable canonical mode new_settings[3] = new_settings[3] & ~termios.ICANON # Disable canonical mode