Changeset 23875 for branches/neb_distrib_20081210/Nebulous/bin
- Timestamp:
- Apr 15, 2009, 11:32:16 AM (17 years ago)
- File:
-
- 1 edited
-
branches/neb_distrib_20081210/Nebulous/bin/neb-ls (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/neb_distrib_20081210/Nebulous/bin/neb-ls
r18092 r23875 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 # 5 # $Id: neb-ls,v 1.7 2008-06-12 20:03:37 jhoblitt Exp $ 3 # Copyright (C) 2007-2009 Joshua Hoblitt 6 4 7 5 use strict; … … 9 7 10 8 use vars qw( $VERSION ); 11 $VERSION = '0.0 2';9 $VERSION = '0.03'; 12 10 13 11 use Nebulous::Client; … … 16 14 use Pod::Usage qw( pod2usage ); 17 15 18 my ($server, $long, $recursive); 16 my ( 17 $server, 18 $long, 19 # $recursive, 20 ); 19 21 20 22 $server = $ENV{'NEB_SERVER'} unless $server; … … 22 24 GetOptions( 23 25 'server|s=s' => \$server, 24 'recursive|r' => \$recursive,26 # 'recursive|r' => \$recursive, 25 27 'l|1' => \$long, 26 28 ) || pod2usage( 2 ); … … 39 41 unless defined $neb; 40 42 41 # default to listing everything (bad idea?)42 $pattern ||= " .*";43 # default to listing root 44 $pattern ||= "/"; 43 45 44 if ($recursive) {45 $pattern = "^" . $pattern . ".*";46 } else {47 $pattern = "^" . $pattern . "\$";48 }46 #if ($recursive) { 47 # $pattern = "^" . $pattern . ".*"; 48 #} else { 49 # $pattern = "^" . $pattern . "\$"; 50 #} 49 51 50 52 my $keys = $neb->find_objects($pattern); … … 86 88 Optional 87 89 88 =item * --recursive|-r 89 90 By default C<neb-ls> will only try to match the exact string provided to it. 91 With this option set all keys which match C<<pattern>> as a REGEX or substring 92 will be returned. 93 94 Optional 95 90 =cut 91 #=item * --recursive|-r 92 # 93 #By default C<neb-ls> will only try to match the exact string provided to it. 94 #With this option set all keys which match C<<pattern>> as a REGEX or substring 95 #will be returned. 96 # 97 #Optional 98 # 96 99 =item * --server|-s <URL> 97 100 … … 130 133 =head1 COPYRIGHT 131 134 132 Copyright (C) 2007-200 8Joshua Hoblitt. All rights reserved.135 Copyright (C) 2007-2009 Joshua Hoblitt. All rights reserved. 133 136 134 137 This program is free software; you can redistribute it and/or modify it under
Note:
See TracChangeset
for help on using the changeset viewer.
