Changeset 41172 for trunk/Nebulous/bin/neb-ls
- Timestamp:
- Nov 27, 2019, 12:04:14 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-ls (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-ls
r28581 r41172 19 19 $ls, 20 20 $column, 21 $help 21 22 ); 22 23 23 24 $server = $ENV{'NEB_SERVER'} unless $server; 24 25 25 26 26 GetOptions( … … 29 29 'l' => \$ls, 30 30 'column|c' => \$column, 31 'help|h' => \$help, 31 32 ) || pod2usage( 2 ); 33 34 # explicitly defined -h / --help: 35 if ($help) { pod2usage( -verbose => 1 ); } 32 36 33 37 # twiddle column so that it does it by default. … … 35 39 $column = not $column; 36 40 41 if ($ls) { $path = 1; } 42 37 43 my $pattern = shift; 38 44 39 45 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 40 pod2usage( -msg => "Required options: --server", -exitval => 2 ) 41 unless $server; 46 pod2usage( -msg => "Required options: --server", -exitval => 2 ) unless $server; 42 47 43 48 my $neb = Nebulous::Client->new( … … 96 101 =head1 SYNOPSIS 97 102 98 neb-ls [--server <URL>] [-c] [-p] <pattern>103 neb-ls [--server <URL>] [-c] [-p] [-l] <pattern> 99 104 100 105 =head1 DESCRIPTION 101 106 102 107 This program list Nebulous keys matched by C<<pattern>>. Call it with no 103 arguments is equivalent to searching with the pattern C<neb://>. SQL like108 arguments is equivalent to searching with the pattern C<neb://>. SQL-like 104 109 wildcards are supported to select out certain files. 105 110 … … 108 113 =over 4 109 114 110 =item *--path|-p115 =item --path|-p 111 116 112 117 Find the disk files corresponding to the keys found. 113 118 114 =item *--column|-c119 =item --column|-c 115 120 116 121 Disable column formatting, and output results one to a line. 117 122 123 =item --l|-l 124 125 Give disk file information using ls (implies -p). 126 118 127 Optional 119 128 120 =item *--server|-s <URL>129 =item --server|-s <URL> 121 130 122 131 URL of the Nebulous server to connect to.
Note:
See TracChangeset
for help on using the changeset viewer.
