Compare commits

..

2 Commits

Author SHA1 Message Date
NotAFile bd43832eee allow passing pipeline on stdin 2021-09-29 18:09:17 +02:00
NotAFile b7e7ab2336 actually use argv argument 2021-09-29 18:07:07 +02:00
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@ def split_commands(tokens):
def main():
command = sys.argv[1] if len(sys.argv) > 1 else INPUTCMD
oneliner = shlex.shlex(INPUTCMD, posix=True, punctuation_chars=True)
if command.strip() == "-":
command = sys.stdin.read()
oneliner = shlex.shlex(command, posix=True, punctuation_chars=True)
stages = []
last_stage = None