summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-08-05 22:36:42 +0000
committerfukachan <fukachan>2001-08-05 22:36:42 +0000
commit13e5488261d1b881f36fc8ee18cf62401946ea1d (patch)
treece061468c7c792c9d493c19bde684810a10eb0c2 /fml/lib/FML/Command
parent818f68a3ddadc3aaffc3c430812be8058027cfbc (diff)
downloadfml8-13e5488261d1b881f36fc8ee18cf62401946ea1d.tar.gz
fml8-13e5488261d1b881f36fc8ee18cf62401946ea1d.tar.bz2
fml8-13e5488261d1b881f36fc8ee18cf62401946ea1d.zip
template of config.cf modification
Diffstat (limited to 'fml/lib/FML/Command')
-rw-r--r--fml/lib/FML/Command/edit.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/edit.pm b/fml/lib/FML/Command/edit.pm
index 62179cd2..3dac3b28 100644
--- a/fml/lib/FML/Command/edit.pm
+++ b/fml/lib/FML/Command/edit.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: edit.pm,v 1.4 2001/07/15 12:03:37 fukachan Exp $
+# $FML: edit.pm,v 1.5 2001/07/15 23:20:29 fukachan Exp $
#
package FML::Command::edit;
@@ -26,9 +26,17 @@ See C<FML::Command> for more details.
=head2 C<edit( $address )>
+ TODO
+
+now we can read and write config.cf, not change it.
+
=cut
+# Descriptions: edit config.cf
+# Arguments: $self $curproc $optargs
+# Side Effects: update config.cf
+# Return Value: none
sub edit
{
my ($self, $curproc, $optargs) = @_;
@@ -47,6 +55,12 @@ sub edit
# read configuration. configuration is holded in FML:Config space.
$c->read( $config_cf );
+ # modify $c (config) object
+ # XXX TODO
+ # XXX ... snip ...
+ # $c->set('key', 'value'); # set up
+ # $c->regist('key'); # add list to write into config.cf
+
# ovewrite $config_cf
# after old $config_cf is backup'ed to $config_cf.bak
$c->write( $config_cf );