Skip to content

Commit

Permalink
🐛(ozi-new): remove pipe guard from args
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jul 13, 2024
1 parent 2ad59e8 commit 53bf713
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ozi/new/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import shlex
import sys
from itertools import chain
from typing import TYPE_CHECKING

from ozi_core.new.interactive import interactive_prompt # pyright: ignore
Expand Down Expand Up @@ -49,12 +48,6 @@ def wrap(project: Namespace) -> None: # pragma: no cover

def main(args: list[str] | None = None) -> None: # pragma: no cover
"""Main ozi.new entrypoint."""
pipe = sys.stdin if not sys.stdin.isatty() else None
args = (
list(chain.from_iterable([shlex.split(line.strip()) for line in pipe]))
if pipe
else args
)
ozi_new = parser.parse_args(args=args)
ozi_new.argv = shlex.join(args) if args else shlex.join(sys.argv[1:])
match ozi_new:
Expand Down

0 comments on commit 53bf713

Please sign in to comment.