Let commandline_operation accept stdin.
commit86972abf67ba9066a1c012817a866ec6c41185e1
authorM. Eric Irrgang <ericirrgang@gmail.com>
Mon, 24 Feb 2020 10:01:55 +0000 (24 13:01 +0300)
committerEric Irrgang <ericirrgang@gmail.com>
Mon, 24 Feb 2020 15:09:06 +0000 (24 16:09 +0100)
tree1232249abc77df5e5af1e265b31b397869f54ab9
parent46d02dcd05e99dabd1d4e9a81dc1cb81cd899958
Let commandline_operation accept stdin.

Add a *stdin* key word to gmxapi.commandline.cli() and
gmxapi.commandline_operation(). Optionally accept a string object to
pass to the subprocess standard input pipe.

Fixes #3393

Change-Id: I563aeb19e944e7e9e755a72b1956b61ff7789c22
python_packaging/src/gmxapi/commandline.py
python_packaging/src/test/test_commandline.py