diff options
| author | fukachan <fukachan> | 2001-07-15 04:00:26 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-07-15 04:00:26 +0000 |
| commit | 376edbf156142beaee049f3348694e128a22fe6d (patch) | |
| tree | bd5f73e0126b32fdc082d06e579c0b80bd455b0a /fml/lib/FML/Command | |
| parent | 27f8eda25c6ec2f18681cf0e8f3bf9f593095f8f (diff) | |
| download | fml8-376edbf156142beaee049f3348694e128a22fe6d.tar.gz fml8-376edbf156142beaee049f3348694e128a22fe6d.tar.bz2 fml8-376edbf156142beaee049f3348694e128a22fe6d.zip | |
prepare "makefml edit $ml_name" command which provides methods to
read/write configuration file keeping the comment.
We can read one configuration file and holds the information in the
object. This is a prototype. We need to implement methods to write
and edit them.
Diffstat (limited to 'fml/lib/FML/Command')
| -rw-r--r-- | fml/lib/FML/Command/edit.pm | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/fml/lib/FML/Command/edit.pm b/fml/lib/FML/Command/edit.pm new file mode 100644 index 00000000..852e3121 --- /dev/null +++ b/fml/lib/FML/Command/edit.pm @@ -0,0 +1,68 @@ +#-*- perl -*- +# +# Copyright (C) 2001 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $FML: subscribe.pm,v 1.9 2001/05/27 14:27:54 fukachan Exp $ +# + +package FML::Command::edit; +use strict; +use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); +use Carp; + +=head1 NAME + +FML::Command::edit - edit a new member + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +See C<FML::Command> for more details. + +=head1 METHODS + +=head2 C<edit( $address )> + +=cut + + +sub edit +{ + my ($self, $curproc, $args) = @_; + my $config = $curproc->{ config }; + my $options = $args->{ options }; + my $address = $args->{ address } || $options->[ 0 ]; + + # ML's home directory + my $ml_home_dir = $args->{ 'args' }->{ 'ml_home_dir' }; + my $config_cf = $ml_home_dir."/config.cf"; + + use FML::Config; + my $c = new FML::Config; + $c->read( $config_cf ); +} + + +=head1 AUTHOR + +Ken'ichi Fukamachi + +=head1 COPYRIGHT + +Copyright (C) 2001 Ken'ichi Fukamachi + +All rights reserved. This program is free software; you can +redistribute it and/or modify it under the same terms as Perl itself. + +=head1 HISTORY + +FML::Command::edit appeared in fml5 mailing list driver package. +See C<http://www.fml.org/> for more details. + +=cut + + +1; |
