my $self = shift;
my $options = ref $_[0] ? shift : {};
+ if (!(-t STDIN)) {
+ _read_stdin(\@_);
+ }
+ if (!@_ || $options->{interactive}) {
+ open STDIN, '<', '/dev/tty';
+ _read_stdin(\@_);
+ }
die "No files or URIs specified.\n" unless @_;
if ($options->{group}) {
}
}
+sub _read_stdin {
+ for my $file_or_uri (<STDIN>) {
+ chomp $file_or_uri;
+ push @{ $_[0] }, $file_or_uri;
+ }
+}
+
sub fey {
App::Fey->new(ref $_[0] ? $_[0] : {})->launch(@_);
}