App-CdUtils
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
script/cdtree-backend view on Meta::CPAN
...
...
Searching descendants, depth-first:
% cd /media/mv
% DEBUG=1 cdtree celine-dion
cdtree: Looking in /media/mv/en
cdtree: Looking in /media/mv/en/a
cdtree: Looking in /media/mv/en/a/acdc
...
cdtree: Looking in /media/mv/en/b
cdtree: Looking in /media/mv/en/b/bruno-mars
...
cdtree: Looking in /media/mv/en/c
cdtree: Found /media/mv/en/c/celine-dion
Searching siblings:
% cd /media/mv/en/c/celine-dion
% DEBUG=1 cdtree charlie-puth
cdtree: Looking in /media/mv/en/c
cdtree: Found /media/mv/en/c/charlie-puth
Searching parent's siblings:
% cd /media/mv/en/c/celine-dion
% DEBUG=1 cdtree evanescence
cdtree: Looking in /media/mv/en/c
cdtree: Looking in /media/mv/en/c/carly-rae-japsen
cdtree: Looking in /media/mv/en/c/charlie-puth
...
cdtree: Looking in /media/mv/en/a
cdtree: Looking in /media/mv/en/acdc
...
cdtree: Looking in /media/mv/en/b
cdtree: Looking in /media/mv/en/bruno-mars
...
cdtree: Looking in /media/mv/en/d
cdtree: Looking in /media/mv/en/d/demi-lovato
cdtree: Looking in /media/mv/en/d/dido
...
cdtree: Looking in /media/mv/en/e
cdtree: Found /media/mv/en/e/evanescence
=head1 DESCRIPTION
B<cdtree> is a command to change directory by searching your argument in
descendants (depth-first), then siblings (depth-first), then parent's siblings
(depth-first), and so on until it tries the root's siblings. It stops after it
finds the directory. It can take a while(!) but it's convenient.
=head1 ENVIRONMENT
=head2 DEBUG => bool
If set to true, will print the directories as they are tried.
=head1 TODO
Timeouts/limits: number of seconds, number of directories searched.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-CdUtils>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-CdUtils>.
=head1 SEE ALSO
L<cdpart-backend>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.
Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
that are considered a bug and can be reported to me.
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2023, 2022, 2016 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-CdUtils>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.554 second using v1.00-cache-2.02-grep-82fe00e-cpan-f5108d614456 )