revert run change

This commit is contained in:
Xi Yan 2025-01-17 23:11:29 -08:00
parent 83aaf2fb8f
commit 4a45c9e714
2 changed files with 3 additions and 8 deletions

View file

@ -1,7 +1,7 @@
name: Docker Build and Publish name: Docker Build and Publish
on: on:
push: # push:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:

View file

@ -6,7 +6,6 @@
import argparse import argparse
import os import os
import sys
from pathlib import Path from pathlib import Path
from llama_stack.cli.subcommand import Subcommand from llama_stack.cli.subcommand import Subcommand
@ -71,7 +70,7 @@ class StackRun(Subcommand):
BUILDS_BASE_DIR, BUILDS_BASE_DIR,
DISTRIBS_BASE_DIR, DISTRIBS_BASE_DIR,
) )
from llama_stack.distribution.utils.exec import run_command, run_with_pty from llama_stack.distribution.utils.exec import run_with_pty
if not args.config: if not args.config:
self.parser.error("Must specify a config file to run") self.parser.error("Must specify a config file to run")
@ -191,8 +190,4 @@ class StackRun(Subcommand):
return return
run_args.extend(["--env", f"{key}={value}"]) run_args.extend(["--env", f"{key}={value}"])
is_terminal = os.isatty(sys.stdout.fileno()) run_with_pty(run_args)
if is_terminal:
run_with_pty(run_args)
else:
run_command(run_args)