IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16263


Ignore:
Timestamp:
Jan 29, 2008, 2:15:18 PM (18 years ago)
Author:
jhoblitt
Message:
add neb-ls -l1 option
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r16262 r16263  
    22
    330.07
     4    - add neb-ls -l|-1 option
     5    - add neb-fsck
    46    - add neb-stat
    57    - add additional fkey constrains to the instance table
  • trunk/Nebulous/Changes

    r16262 r16263  
    22
    330.07
     4    - add neb-ls -l|-1 option
     5    - add neb-fsck
    46    - add neb-stat
    57    - add additional fkey constrains to the instance table
  • trunk/Nebulous/bin/neb-ls

    r13074 r16263  
    11#!/usr/bin/env perl
    22
    3 # Copyright (C) 2007  Joshua Hoblitt
     3# Copyright (C) 2007-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-ls,v 1.4 2007-04-28 01:19:59 jhoblitt Exp $
     5# $Id: neb-ls,v 1.5 2008-01-30 00:15:18 jhoblitt Exp $
    66
    77use strict;
     
    99
    1010use vars qw( $VERSION );
    11 $VERSION = '0.01';
     11$VERSION = '0.02';
    1212
    1313use Nebulous::Client;
     
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($server);
     18my ($server, $long);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
    2121
    2222GetOptions(
    23     'server|s=s'     => \$server,
     23    'server|s=s'    => \$server,
     24    'l|1'           => \$long,
    2425) || pod2usage( 2 );
    2526
     
    4344
    4445if ($keys) {
    45     print join(" ", @{ $keys }), "\n";
     46    if ($long) {
     47        print join("\n", @{ $keys }), "\n";
     48    } else {
     49        print join(" ", @{ $keys }), "\n";
     50    }
    4651}
    4752
     
    5661=head1 SYNOPSIS
    5762
    58     neb-ls [--server <URL>] <pattern>
     63    neb-ls [--server <URL>] [-l|-1] <pattern>
    5964
    6065=head1 DESCRIPTION
     
    6772
    6873=over 4
     74
     75=item * -l|-1
     76
     77Use a long listing format.
     78
     79Optional
    6980
    7081=item * --server|-s <URL>
     
    104115=head1 COPYRIGHT
    105116
    106 Copyright (C) 2007  Joshua Hoblitt.  All rights reserved.
     117Copyright (C) 2007-2008  Joshua Hoblitt.  All rights reserved.
    107118
    108119This program is free software; you can redistribute it and/or modify it under
Note: See TracChangeset for help on using the changeset viewer.