source: LATMOS-Accounts/bin/la-config @ 25

Last change on this file since 25 was 25, checked in by nanardon, 15 years ago
  • add la-config tools
File size: 564 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5use LATMOS::Accounts;
6use Getopt::Long;
7use Pod::Usage;
8
9GetOptions(
10    'c|config=s' => \my $config,
11) or pod2usage();
12
13my $LA = LATMOS::Accounts->new($config);
14
15my $action = shift(@ARGV) || '';
16for ($action) {
17    m/^$/ and do {
18        my $default = $LA->default_base_name || '';
19        foreach ($LA->list_bases) {
20            printf("%s %s (%s)\n",
21                ($_ eq $default ? '*' : ' '),
22                $_,
23                $LA->val($_, 'type', 'Err: no type')
24            );
25        }
26        last;
27    };
28}
Note: See TracBrowser for help on using the repository browser.