#!/usr/bin/env perl

# ABSTRACT: Open a browser window with the Travis-CI URL of the repository which you are currently inside of
# PODNAME: travis-open

use strict;
use warnings;

use Browser::Open qw( open_browser );
use Git::Helpers qw( travis_url );

open_browser( travis_url( shift @ARGV ));
exit;

__END__

=pod

=encoding UTF-8

=head1 NAME

travis-open - Open a browser window with the Travis-CI URL of the repository which you are currently inside of

=head1 VERSION

version 0.000013

=head1 SYNOPSIS

    # open Travis-CI URL of "origin" in your default browser
    travis-open

    # open Travis-CI of "upstream" remote in your default browser
    travis-open upstream

=head1 AUTHOR

Olaf Alders <olaf@wundercounter.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2015-2017 by Olaf Alders.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
