summaryrefslogtreecommitdiffstats
path: root/src/browse.py
Commit message (Collapse)AuthorAgeFilesLines
* browse: Bind to localhost by defaultTej Chajed2017-03-091-2/+6
| | | | | | | | | Previously the browse server would bind to "", which is translated to 0.0.0.0 (all interfaces), and then the hostname as retrieved by socket.gethostname() was presented to the user. The hostname is now "localhost" by default and is configurable, so the original behavior is achieved with `ninja -t browse -a ""`.
* Escape ninja output inserted into HTMLColin Cross2016-05-271-6/+10
| | | | | | Ninja query or error output may contain characters that need to be escaped when being inserted into HTML. Replace &, ", <, and > with their & equivalent.
* Pass location of build.ninja file to browse scriptColin Cross2016-04-191-2/+4
| | | | | Pass the value of -f to the browse python script so it can be passed back to ninja -t query.
* browse: support --port and --no-browser optionsPeter Wu2016-03-111-4/+18
| | | | | | | Add --port option to override the default port (8000). Add --no-browser option to avoid opening a web browser (useful over SSH). Make the target name optional, using "all" if omitted.
* browse.py: Python 3 compatibilityPeter Wu2016-03-111-2/+5
|
* browse.py: allow port override via environment variablePeter Wu2016-02-251-1/+1
|
* Browse tool uses real hostname not localhost, to allow -t browse when using sshRichard Geary2013-05-221-2/+6
| | | | Change-Id: Ic4be6527151a7ff68afab62e61951071ad5694b7
* Browse command does not parse URL correctlyBei Zhang2013-02-241-1/+2
|
* browse: Read ninja's error text from stderr.Philip Puryear2012-12-081-5/+6
|
* browse.py: Don't truncate error message if ninja -t query fails.Philip Puryear2012-10-261-10/+15
| | | | Signed-off-by: Philip Puryear <philippuryear@gmail.com>
* browse.py: Fix truncation with an unknown target.Philip Puryear2012-10-261-1/+3
| | | | Signed-off-by: Philip Puryear <philippuryear@gmail.com>
* browse.py: Python 3 support.Philip Puryear2012-10-261-29/+34
| | | | Signed-off-by: Philip Puryear <philippuryear@gmail.com>
* rearrange query/browse output to be more sensibleEvan Martin2012-01-241-53/+78
|
* Rewrite the bootstrap script in PythonElliott Hird2011-12-151-1/+1
| | | | | | | This allows trouble-free builds on platforms with non-standard Python executable names. As a bonus, it passes the arguments received on to configure.py, so you don't have to reconfigure to build in a non-standard manner.
* Revert "Merge pull request #143 from cipriancraciun/patches/python2"Evan Martin2011-11-251-1/+1
| | | | | | | This reverts commit 38ab41f45ff818b437942b753328a0168914fc86, reversing changes made to 819d6347b424f583d651b86dd1280605ddb23b88. Platforms that don't have /usr/bin/python pointing to python2 are broken.
* Fixed Python 2 scripts prologue (i.e. `#!/usr/bin/env python2`).Ciprian Dorin, Craciun2011-11-221-1/+1
|
* tweak browse appearanceEvan Martin2011-05-131-10/+17
|
* make browse work for all ninja pathsEvan Martin2011-05-131-2/+2
| | | | | | | Pass the path to the ninja binary in to the Python script. Confusingly, in some places the variables were already in place to do this, but they were accidentally used for something else entirely.
* use a shell script to inline browse.pyEvan Martin2011-03-071-1/+3
| | | | | | | | | Relying on the inline-assembly trick was cute but it didn't work on other platforms; relying on xxd will make us depend on xxd being available. Instead, inline browse.py into a header using a shell script. (Making this work required fixing multiple bugs in ninja...)
* add copyrightsEvan Martin2011-02-061-0/+14
|
* move tools into a flagEvan Martin2011-01-281-1/+2
|
* call out ctl-c for quittingEvan Martin2011-01-231-1/+1
|
* add browser modeEvan Martin2011-01-231-0/+130