Page MenuHomePhabricator

Support browsing '.' and default to it
ClosedPublic

Authored by sophiebits on Feb 9 2014, 1:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 14, 11:14 PM
Unknown Object (File)
Sat, Sep 14, 11:13 PM
Unknown Object (File)
Sat, Sep 14, 11:13 PM
Unknown Object (File)
Sat, Sep 14, 11:13 PM
Unknown Object (File)
Thu, Aug 22, 7:20 PM
Unknown Object (File)
Thu, Aug 22, 7:19 PM
Unknown Object (File)
Thu, Aug 22, 7:19 PM
Unknown Object (File)
Thu, Aug 22, 6:47 PM

Details

Test Plan

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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–80

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).