summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-08-29Update NEWSLars Wirzenius1-0/+6
2015-08-29Add subcommand usage getterRichard Ipsum2-2/+12
2015-08-29Update debian/changelogLars Wirzenius1-0/+7
2015-08-29Update NEWSLars Wirzenius1-0/+10
2015-08-29Update manual page wrt string list optionsLars Wirzenius1-3/+12
2015-08-29Fix whitespace, line lengthLars Wirzenius2-1/+3
2015-08-29Allow comma in StringListSetting valuesJan Gerber2-10/+24
- Escape values with comma with double quotes in config syntax. - Don't split values passed as arguments.
2015-07-22Fix meliae useLars Wirzenius2-1/+6
2015-07-01Prepare release 1.20150701cliapp-1.20150701Lars Wirzenius3-4/+4
2015-06-30Change source package formatLars Wirzenius2-1/+2
2015-06-30Prepare release 1.20150630Lars Wirzenius3-2/+8
2015-05-31Move memory dumping method to util.pyLars Wirzenius4-66/+99
2015-05-31Mark outside test coverageLars Wirzenius1-1/+1
2015-05-31Remove logging.debug calls to reduce verbosityLars Wirzenius1-2/+0
2015-05-09Include stdout output in exception if command failsLars Wirzenius1-1/+1
2015-05-01Don't run pylint if it's too oldLars Wirzenius1-1/+5
2015-05-01Whitespace fixes for PEP8Lars Wirzenius4-16/+16
2015-05-01Build-depend on pep8, pylintLars Wirzenius1-1/+1
2015-04-18Add running of pylint in 'make check' and fix thingsLars Wirzenius24-209/+257
2015-04-18Run pep8 in "make check" and fix so it passesLars Wirzenius18-142/+166
2015-03-24Add ssh_runcmd(..., remote_cwd='...'))Lars Wirzenius2-1/+18
2015-03-24Quote user-provided optionsLars Wirzenius1-1/+1
2015-03-24Add ssh_options to ssh_runcmdLars Wirzenius2-9/+23
2015-03-24Update NEWSLars Wirzenius1-0/+6
2015-03-24Add ssh_options to ssh_runcomdLars Wirzenius1-0/+3
2015-03-24Document ssh_options in docstringLars Wirzenius1-1/+5
2015-03-24Refactor ssh_runcmd for code clarityLars Wirzenius1-8/+9
2015-03-05Prepare for releasecliapp-1.20150305Lars Wirzenius4-3/+9
2015-02-08Collect all stderrs from pipelineLars Wirzenius2-4/+20
2015-02-08Update NEWSLars Wirzenius1-0/+4
2015-02-08runcmd: Collect stderr of whole pipelineRichard Maw1-4/+16
When pipe_stderr is None (inherit parent fd), subprocess.STDOUT (stderr to stdout) or a specific file, it would put everything to the right place, but when pipe_stderr is subprocess.PIPE the behaviour is less well defined. Before this change, it would happen to return the stderr of the last element of the pipeline, behaving similar to this shell snippet, except it does not need an intermediate file to store the contents of stderr in memory. stdout="$(foo 2>/dev/null | bar 2>/dev/null | baz 2>tmp)" stderr="$(cat tmp)" With this patch, it now behaves more like: stdout="$((foo | bar | baz) 2>tmp)" stderr="$(cat tmp)" It works by duplicating some of the subprocess.PIPE behaviour outside of subprocess.Popen, as there's no better way to make every subprocess have the same stderr, since there's no way to get the write end out of the Popen object after it has been constructed, since it is closed in the constructor, only leaving the read-end available as p.stderr. Only the last element of the pipeline is given the read end of the pipe, since it ought to have only one read pipe, and it makes the most sense for the last element to have the pipe, since you can then think of the pipeline as having a pipe that joins every element for stderr, that comes out at the end, with the stdout of the pipeline.
2015-01-30Fix runcmd pipeline file descriptor in parentLars Wirzenius2-0/+16
2015-01-30Update NEWSLars Wirzenius1-0/+7
2015-01-30Fix non-termination bug in _build_pipelineRichard Maw1-0/+9
This fixes a bug that leads to non-termination in some pipelines that should terminate immediately such as `cat /dev/zero | false`
2014-08-03Fix test for callbacksLars Wirzenius1-2/+7
2014-07-31Add callbacks to cliapp.runcmd for stdout/err dataLars Wirzenius5-5/+107
2014-07-31Allow runcmd callbacks to mangle the collected dataLars Wirzenius2-8/+18
2014-07-31Update NEWSLars Wirzenius1-0/+7
2014-07-31Fix copyright statementLars Wirzenius1-1/+1
2014-07-31Add tests for runcmd callbacksRichard Ipsum1-0/+27
2014-07-31Add LoggerApp exampleRichard Ipsum2-0/+47
2014-07-31Add callbacks to runcmdRichard Ipsum1-2/+13
2014-07-19Prepare release 1.20140719cliapp-1.20140719Lars Wirzenius4-3/+9
2014-04-20Make Plugin.disable be a no-opLars Wirzenius3-6/+6
2014-04-15Remove some dead codeLars Wirzenius1-16/+0
2014-04-15Split logging setup into further overrideable methodsLars Wirzenius2-7/+18
2014-04-15Split of logging setup for file into separate methodLars Wirzenius2-10/+19
2014-04-09Fix missing get_help_text_formatterLars Wirzenius2-1/+9
2014-03-15Prepare release 1.20140315cliapp-1.20140315Lars Wirzenius5-6/+6
2014-01-07Fix markdown for README legaleseLars Wirzenius1-17/+16
Reported-by: Sam Thursfield