Nicholas Nethercote
dc4d4c7634
Bug 1077272 - Allow argument groups in mach commands. r=gps.
...
--HG--
extra : rebase_source : 478b305eedac6d30af748d80da408042aba48c14
2014-10-08 15:11:50 -07:00
Mike Hommey
66e8daff0b
Bug 1076649 - Remove the '+' prefixing from mach commands with allow_all_arguments=True. r=gps
...
The reason to use '+' prefixing was to distinguish between options to the
mach command itself, and options that are passed down to whatever the
command does (like mach run passing down args to the built application).
That makes things unnecessarily awkward, and quite non-standard.
Instead, use standard '-' prefixing, and pass all the unknown arguments
down. If there is overlap between the known arguments and arguments supported
by the underlying tool (like -remote when using mach run), it is possible to
use '--' to mark all following arguments as being targetted at the underlying
tool.
For instance:
mach run -- -remote something
would run
firefox -remote something
while
mach run -remote something
would run
firefox something
As allow_all_arguments is redundant with the presence of a argparse.REMAINDER
CommandArgument, allow_all_arguments is removed. The only mach command with a
argparse.REMAINDER CommandArgument without allow_all_arguments was "mach dmd",
and it did so because it didn't want to use '+' prefixes.
2014-10-07 07:36:27 +09:00
Ahmed Kachkach
fd6d2218d1
Bug 1057694 - Command suggestions in mach. r=gps
2014-08-26 16:17:00 +02:00
Sylvestre Ledru
5cf3fe66c5
Bug 1051987 - Remove useless option which wasn't supposed to go in the commit
...
--HG--
extra : amend_source : 83ccc90a5ee1b0a41640d2b1451208add8dc2c5d
2014-08-18 15:33:51 +02:00
Sylvestre Ledru
4132506134
Bug 1051987 - By default, hide the disabled commands. They are eating the display for no value. $ ./mach -v help bring them back. r=jmaher
...
From 7c2de97792113d3415acf2cfa1591fa05c5b07a8 Mon Sep 17 00:00:00 2001
display for no value. $ ./mach -v help bring them back.
---
build/mach_bootstrap.py | 2 +-
python/mach/mach/dispatcher.py | 14 +++++++-------
python/mach/mach/main.py | 3 +++
3 files changed, 11 insertions(+), 8 deletions(-)
2014-08-11 18:31:24 +02:00
Gregory Szorc
9fe6fe037c
Bug 1043524 - Define group variable is an existing parser is passed; r=jgraham
...
While I was here, I removed the try..except in favor of failing fast.
Before, we were only making cosmetic changes. Now, we actually need the
group for mach to work. It makes sense to stop ignoring errors.
This fixes a regression from d53d1c6cdf13 / bug 951733.
--HG--
extra : rebase_source : aeb6c99a945eaff32cf86fa481d03c0c8dee593a
extra : amend_source : f1e29385bf8ca8ac250a04f81e7e955c4152b476
2014-07-24 11:35:15 -07:00
Mike Hommey
fad1758c54
Bug 1030717 - Don't try to create the mach state directory until it's actually needed. r=gps
2014-07-03 07:15:31 +09:00
Jason Orendorff
7ae1d3954e
Bug 1020514 - Make mach colorize lines that start with REFTEST TEST-UNEXPECTED-FAIL etc. r=gps.
...
--HG--
extra : rebase_source : 30d85f6d46894753d925c4189b598de034014fe6
2014-06-20 12:01:03 -05:00
Markus Stange
82507ca2bc
Bug 1019944 - mach logging shouldn't eat whitespace at the start of the line. r=gps
2014-06-25 10:35:32 +02:00
Mike Hommey
fab293d991
Bug 996823 - Let mach pass-through subprocesses handle Ctrl-C themselves. r=mshal
2014-05-23 07:22:51 +09:00
Ting-Yu Lin
abe7bf277d
Bug 995847 - Add -h and --help support to mach. r=glandium
...
* |mach --help| prints the global help message as |mach help|.
* |mach command --help| prints the command help message as
|mach help command|.
2014-05-06 19:10:00 +02:00
Gregory Szorc
f816768e8e
Bug 909522 - Run mach's unit tests as part of make check; r=mshal
...
test_entry_point.py is not enabled because the test fails. This is
tracked by bug 958196.
--HG--
extra : rebase_source : 1f326a9bbd7ee0e8e12ff33f49d8484cc244c42d
2014-01-09 11:20:41 -08:00
Gregory Szorc
40547d4804
Bug 957856 - Synchronize mach with upstream repository; r=ahal
...
The test changes and setup.py are NPOTB. base.py and main.py
added a new feature to declare global arguments.
--HG--
extra : rebase_source : 4b14487d9aff98247464e0b0c08b4fc5cfbd862a
2014-01-08 16:14:39 -08:00
Gregory Szorc
ea7d66f8a8
NO BUG - Synchronize mach documentation with upstream repo
...
DONTBUILD (NPOTB)
--HG--
extra : rebase_source : 07831414dcc182b57a6d7844f8eb2e136f1b636d
extra : amend_source : b8bc9cd1146f82d3e36bbd2846442d13989eefe4
2014-01-08 15:29:43 -08:00
James Graham
a2e48d8056
Bug 951733 - Support passing an existing argparse.ArgumentParser to mach in order to populate the command arguments. r=gps
2014-01-03 11:32:53 +00:00
Martin Thomson
a8b3ca6914
Bug 950957 - Use ${COMP_WORDS[0]} for completion in mach. r=gps
2013-12-19 11:42:19 -05:00
Andrew Halberstadt
c7a94fe5a1
Bug 942275 - Add support for setuptools' entry points to mach, r=gps
...
* * *
Bug 942275 - Ignore load_from_entry_point if setuptools not present, r=gps
2013-12-06 09:24:09 -05:00
Ryan VanderMeulen
ac8d9c831e
Backed out changeset 5cb5fdb72e55 (bug 942275) for mach bustage.
...
CLOSED TREE DONTBUILD
2013-12-03 11:13:26 -05:00
Andrew Halberstadt
b8e187acb4
Bug 942275 - Add support for setuptools' entry points to mach, r=gps
2013-12-03 10:37:20 -05:00
Andrew Halberstadt
96089c4e05
Bug 926607 - Make sure disabled category exists before dumping commands in it, r=jgriffin, DONTBUILD, a=NPOTB
2013-10-15 14:25:43 -04:00
Gregory Szorc
55cde06d2a
Bug 924977 - More proper current working directory handling in mach; r=ahal
2013-10-11 12:44:15 -07:00
Sebastiaan de Haan
c5fc098b2e
Bug 908868 - Add code to the 'mach help' command to show disabled commands. r=gps
2013-10-11 13:41:25 -04:00
Gregory Szorc
7a94daf2c0
Bug 923039 - Normalize unicode environment variables to bytes; r=mbrubeck
2013-10-02 18:40:06 +02:00
Drew Willcoxon
aa9a8c2b48
Bug 920299 - Make Mach logger colorize TEST-START and TEST-INFO. r=gps
2013-09-26 11:04:46 -07:00
Gregory Szorc
c0d4e11009
Bug 847175 - mach mode to not prefix lines with times; r=ted
...
DONTBUILD (NPOTB)
2013-09-20 09:27:19 -07:00
Gregory Szorc
40c7a7023f
Bug 912231 - Allow mach commands to easily dispatch to other mach commands; r=jhammel
...
DONTBUILD (NPOTB)
2013-09-05 15:41:45 -07:00
Andrew Halberstadt
66f51dcf4a
Bug 901972 - Add ability to filter mach commands at runtime, r=gps
2013-08-26 17:33:10 -04:00
Andrew Halberstadt
7e537b9fdc
Bug 902002 - Don't display mach categories in help if no commands exist under them, r=gps, DONTBUILD, a=NPOTB
2013-08-07 15:17:08 -04:00
Gregory Szorc
3f54869e4b
Bug 894197 - Define state directory in mach context object; r=jhammel
...
DONTBUILD (NPOTB)
2013-07-15 19:56:15 -07:00
Gregory Szorc
6b1167c227
Bug 879406 - Unbust |mach help| when arguments are not prefixed with '-'; r=ted
...
DONTBUILD (NPOTB)
2013-06-14 09:44:33 -07:00
Gregory Szorc
d541e7f5d5
Bug 878089 - mach shouldn't fail if terminal couldn't be configured; r=ted
...
DONTBUILD (NPOTB)
2013-06-10 16:16:25 -07:00
Ehsan Akhgari
5dfa419274
Bug 878859 - Remove the mach clippy avatar; r=ted
...
DONTBUILD since this is not part of the build!
2013-06-03 15:46:23 -04:00
Gregory Szorc
615c504f9b
Bug 874471 - Handle mach command help more robustly; r=ted
...
DONTBUILD (NPOTB) on a CLOSED TREE
2013-05-21 15:37:06 -07:00
Matt Brubeck
7587123eae
Bug 799680 - Add a bash completion script for mach [r=gps]
...
DONTBUILD (not part of the build)
2013-05-15 17:00:01 -07:00
Matt Brubeck
0a12c603af
Bug 872807 - Make mach command names case-insensitive [r=gps]
...
DONTBUILD (not part of the build)
2013-05-15 16:58:11 -07:00
Ms2ger
cbd5d22f79
No bug - Fix mach's highlighting of 'TEST-UNEXPECTED-FAIL'; oy-r=gps
2013-05-10 09:13:32 +02:00
Gregory Szorc
2afb3f3369
Bug 856392 - Categorize mach commands; r=jhammel
...
DONTBUILD (NPOTB)
2013-05-08 17:56:30 -07:00
Gregory Szorc
4086f318b9
Bug 857984 - mach mochitest now colorizes and prints failure summary; r=Ms2ger
2013-04-04 15:17:23 -07:00
Ms2ger
7a4e479db0
Backout changeset e1bddda508fe for double logging when running mochitests through mach.
2013-04-07 10:11:11 +02:00
Gregory Szorc
935e4805b0
Bug 857984 - mach mochitest now colorizes and prints failure summary; r=Ms2ger
...
--HG--
extra : rebase_source : 97900c2bf0aaa83a3a9fa5e4dc88901140f66e60
2013-04-04 15:17:23 -07:00
Matt Brubeck
2802c34f95
Bug 841445 - Make 'mach help <command>' call print_help directly [r=gps]
...
DONTBUILD (not part of the build)
2013-03-26 11:15:08 -07:00
Daniel Holbert
38ac00bdbf
Bug 854058: Fix typo in mach error message: s/occured/occurred/. r=gps DONTBUILD
2013-03-22 22:02:37 -07:00
Matt Brubeck
f7c49205a8
Bug 853225 - Fix the mach usage line for subcommands [r=gps]
...
DONTBUILD (not part of the build)
2013-03-20 17:53:34 -07:00
Gregory Szorc
e1391a8122
Bug 846409 - Add |mach mach-debug-commands|; r=jhammel
...
DONTBUILD (NPOTB)
2013-03-04 10:18:48 -08:00
Gregory Szorc
8821ce28f8
Bug 818777 - Switch to NamedTemporaryFile from mozfile; r=ted
...
This version works with Windows.
2012-12-20 16:11:35 -08:00
Gregory Szorc
3c90f824e7
Bug 818649 - Ensure mach logs are written to log file; r=jhammel
...
DONTBUILD (NPOTB)
2012-12-07 11:44:11 -08:00
Gregory Szorc
effb7c4ec4
Bug 818366 - Ability to pass through file descriptors to child processes; r=jhammel
2012-12-05 14:22:58 -08:00
Gregory Szorc
e57f6c26ce
Bug 810742 - Handle callee thrown exceptions when invoking a mach command; r=jhammel
2012-12-05 14:21:58 -08:00
Gregory Szorc
fda723869f
Bug 818628 - Handle long exit code values; r=edmorley
...
DONTBUILD (NPOTB)
2012-12-05 12:32:09 -08:00
Gregory Szorc
6c043cff64
Bug 814075 - Remove reference to mach test, fix help usage; r=me
...
DONTBUILD (NPOTB)
2012-11-21 10:25:44 -08:00