Page MenuHomePhabricator

Support browsing '.' and default to it
ClosedPublic

Authored by sophiebits on Feb 9 2014, 1:24 AM.
Tags
None
Referenced Files
F17848308: D8174.id18490.diff
Jul 27 2025, 7:14 AM
Unknown Object (File)
May 10 2025, 1:51 AM
Unknown Object (File)
May 6 2025, 5:57 PM
Unknown Object (File)
Apr 29 2025, 4:19 PM
Unknown Object (File)
Apr 28 2025, 9:56 AM
Unknown Object (File)
Apr 28 2025, 9:56 AM
Unknown Object (File)
Apr 28 2025, 9:56 AM
Unknown Object (File)
Apr 9 2025, 11:10 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).