]> khamidou — GitHub mirrors - arcanist.git/commit
Unify arguments for 'arc lint', 'arc unit'
authorepriestley <git@epriestley.com>
Mon, 9 Jan 2012 20:40:50 +0000 (12:40 -0800)
committerepriestley <git@epriestley.com>
Tue, 10 Jan 2012 18:42:22 +0000 (10:42 -0800)
commitf3eccfbe81f1a6ae4a6755d10fdc42c632b96327
tree0b5a6b0240beacd6dbac02cc1b70c911e5daf6cc
parent8cbfa612daa3ab3377ad2c2c53fb094e2182a4d5
Unify arguments for 'arc lint', 'arc unit'

Summary: See T645. These commands take inconsistent and overly-magical arguments
right now. Instead, make them behave consistently and allow them both to operate
on "arc <workflow> path path2 path3 ...", which is a generally useful workflow.

Test Plan: Ran "arc lint <path>", "arc unit <path>", "arc lint --rev
HEAD^^^^^^", "arc unit --rev HEAD^^^^^^^^^^^^", etc. Ran "arc diff --trace" and
verified --rev argument to child workflows.

Reviewers: btrahan, jungejason

Reviewed By: btrahan

CC: aran, epriestley, btrahan
Maniphest Tasks: T645

Differential Revision: https://secure.phabricator.com/D1348
15 files changed:
scripts/arcanist.php
src/lint/engine/base/ArcanistLintEngine.php
src/lint/linter/base/ArcanistLinter.php
src/parser/bundle/ArcanistBundle.php
src/repository/hookapi/base/ArcanistHookAPI.php
src/repository/hookapi/subversion/ArcanistSubversionHookAPI.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/base/__init__.php
src/workflow/diff/ArcanistDiffWorkflow.php
src/workflow/lint/ArcanistLintWorkflow.php
src/workflow/lint/__init__.php
src/workflow/shell-complete/ArcanistShellCompleteWorkflow.php
src/workflow/svn-hook-pre-commit/ArcanistSvnHookPreCommitWorkflow.php
src/workflow/unit/ArcanistUnitWorkflow.php
src/workflow/unit/__init__.php