Alien-cargo-clone
view release on metacpan or search on metacpan
lib/Alien/cargo/clone.pm view on Meta::CPAN
package Alien::cargo::clone;
use strict;
use warnings;
use parent qw( Alien::Base );
use Alien::cargo 0.03;
use 5.008004;
# ABSTRACT: Find or build the cargo clone command
our $VERSION = '0.02'; # VERSION
sub bin_dir {
my $self = shift;
my @dirs = Alien::cargo->bin_dir;
unshift @dirs, $self->SUPER::bin_dir;
@dirs;
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Alien::cargo::clone - Find or build the cargo clone command
=head1 VERSION
version 0.02
=head1 SYNOPSIS
use Alien::cargo::clone;
use Env qw( @PATH );
unshift @PATH, Alien::cargo::clone->bin_dir;
system 'cargo', 'clone', 'foo-bar';
=head1 DESCRIPTION
This L<Alien> provides the L<cargo clone|https://crates.io/crates/cargo-clone> command.
=head1 METHODS
=head2 bin_dir
my @dir = Alien::cargo::clone->bin_dir;
Returns the list of directories (if any) that need to be added to the C<PATH> to use
C<cargo clone>.
=head1 SEE ALSO
=over 4
=item L<Alien::Rust>
=item L<Alien::cargo>
=item L<FFI::Build::File::Cargo>
=back
=head1 AUTHOR
Graham Ollis <plicease@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Graham Ollis.
( run in 0.762 second using v1.01-cache-2.11-cpan-39bf76dae61 )