summaryrefslogtreecommitdiffstats
path: root/bin/termcast
blob: fcf7bc4385706a03d18cd6e465406a00c4bc1a1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env perl
use strict;
use warnings;
use App::Termcast;
# PODNAME: termcast
# ABSTRACT: broadcast your terminal sessions for remote viewing

=head1 SYNOPSIS

  termcast [options] [command]

=head1 DESCRIPTION

Runs C<command> (or a shell, if the command isn't given), while broadcasting it
to a termcast server. See L<App::Termcast> for options documentation.

=cut

my $tc = App::Termcast->new_with_options;
my @argv = @{ $tc->extra_argv };
push @argv, ($ENV{SHELL} || '/bin/sh') if !@argv;
App::Termcast->new_with_options->run(@argv);