summaryrefslogtreecommitdiff
path: root/mu/shell.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-11-03 12:27:17 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-11-03 13:24:40 +0200
commit966a860c0eef32bfe8cab5c5c05c54a8e115270b (patch)
treec492df368076ca23307d8d55219d4e43bc418058 /mu/shell.c
parentb02eb9b062494d2ed77ca1f52cd7733486df0bef (diff)
downloadmailutils-966a860c0eef32bfe8cab5c5c05c54a8e115270b.tar.gz
mailutils-966a860c0eef32bfe8cab5c5c05c54a8e115270b.tar.bz2
Improve command module system in mu. Add a `help' command.
* mu/Makefile.am (MODULES): New variable. Put all commands there. (mu_SOURCES): Include $(MODULES). (EXTRA_DIST): Add mu-setup.h mu-setup.c mu-setup.awk (BUILT_SOURCES): New variable. (mu-setup.h, mu-setup.c): New goals. * mu/mu.c (doc): Remove command description: it is generated automatically. (mu_help_filter): New function. (argp): Use mu_help_filter. (mutool_action_tab): Remove. (mutool_nosys,find_action): Remove. (mu_help): New function. (main): Use dispatch_find_action. * mu/mu.h: Include mailutils/types.h (mutool_pop, mutool_filter, mutool_flt2047) (mutool_info, mutool_query, mutool_acl) (mutool_wicket, mutool_ldflags, mutool_cflags): Remove protos. (mu_help, dispatch_find_action, dispatch_docstring): New protos. * mu/acl.c: Add MU Setup comment. * mu/cflags.c: Likewise. * mu/filter.c: Likewise. * mu/flt2047.c: Likewise. * mu/info.c: Likewise. * mu/ldflags.c: Likewise. * mu/pop.c: Likewise. * mu/query.c: Likewise. * mu/wicket.c: Likewise. * mu/mu-setup.awk: New file. * mu/help.c: New file. * mu/dispatch.c: New file. * mu/.gitignore: Add mu-status.[ch] * po/POTFILES.in: Add mu/dispatch.c and mu/help.c.
Diffstat (limited to 'mu/shell.c')
-rw-r--r--mu/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mu/shell.c b/mu/shell.c
index 51ed25afe..ab12fd46a 100644
--- a/mu/shell.c
+++ b/mu/shell.c
@@ -620,3 +620,4 @@ mutool_shell (const char *name, struct mutool_command *cmd)
mu_stream_destroy (&mustrout);
return 0;
}
+

Return to:

Send suggestions and report system problems to the System administrator.