Tools for modeling links between files / URLs / etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
516 B

5 years ago
  1. #!/usr/bin/env perl
  2. =pod
  3. =head1 NAME
  4. pieces-show - show details for a marked URI
  5. =head1 SYNOPSIS
  6. pieces-show show details for a given pieces URI
  7. USAGE:
  8. pieces show [address]
  9. =head1 AUTHOR
  10. Brennen Bearnes <bbearnes@gmail.com>
  11. =cut
  12. use strict;
  13. use warnings;
  14. use 5.10.0;
  15. use App::Pieces;
  16. use Getopt::Long;
  17. use Pod::Usage;
  18. GetOptions(
  19. # 'config=s' => \$config_file,
  20. help => sub { pod2usage(0) },
  21. ) or pod2usage(2);
  22. my $p = App::Pieces->new();
  23. my $piece_id = $p->get($ARGV[0]);
  24. say $piece_id;