Page MenuHomePhabricator

Support browsing '.' and default to it
ClosedPublic

Authored by sophiebits on Feb 9 2014, 1:24 AM.
Tags
None
Referenced Files
F14036447: D8174.id18487.diff
Sun, Nov 10, 10:16 AM
F14036406: D8174.diff
Sun, Nov 10, 10:07 AM
F14008933: D8174.id18490.diff
Wed, Oct 30, 8:05 AM
F14003196: D8174.id18490.diff
Sat, Oct 26, 3:20 AM
F13992040: D8174.id.diff
Tue, Oct 22, 2:02 PM
F13985863: D8174.id18487.diff
Sun, Oct 20, 11:18 PM
F13981034: D8174.id18490.diff
Sat, Oct 19, 1:54 PM
F13978269: D8174.diff
Fri, Oct 18, 10:24 PM

Details

Test Plan

Ran 'arc browse', 'arc browse .', 'arc browse main.py'.

Diff Detail

Repository
rARC Arcanist
Branch
browse-cwd
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

I'm not sure I'd like it to default to .; One thing I find myself doing quite often is:

$ find ... | xargs arc browse

Which would be a little weird (less "unix-y") if it will open the cwd instead of nothing, I think.

Kudos for the bug-fix, though :)

src/workflow/ArcanistBrowseWorkflow.php
79–83

can be written as $this->getArgument('paths', '.');

Maybe we could give you arc browse --stdin, although that might be a pain to remember.

I'll just pull the bugfix, I don't feel too strongly about the default behavior of arc browse, and the xargs use cases is a reasonable one.

Closed by commit rARC52d3cd1b4ef7 (authored by @spicyj, committed by @epriestley).