[Mailman-Developers] [CLI Project] Initial Commit on Command Line Shell
Rajeev S
rajeevs1992 at gmail.com
Mon Jul 7 08:06:23 CEST 2014
Hi,
I have pushed the r61 [1], which makes it the first commit on the Command
Line shell. As Steve suggested, I have also modified the CL tools (and
shell) to support both singular and plural instance names using a naive
function, that can be replaced with a prefix matching procedure, if
necessary.
As for the shell, it currently supports the `display objects` functionality
using the `show` clause.
The `show` clause supports three kinds of filters, equality, in_list and a
regular expression filter.
Also, r61 adds a basic version shell environment functionality, which can
be used to store variables that can be reused in the queries. The feature
`setting of mailman object names in the environment and using them without
explicitly specifying them the queries` is yet to be built and will be a
part of r62, which I expect to complete by Wednesday (09/07/2014). r62 will
also include the create functions for the mailman objects.
Currently, the shell supports only conjunctions in clauses. Queries can
contain any number of filters specified using the conjunctions.
A few sample queries that are currently supported by the shell
>>>set domain domain.org
>>>show lists where mail_host = $domain
>>>show lists where mail_host = $domain and foo at bar.com in moderators
>>>show users where display_name like .*foo
>>>show domains
>>>unset domain
I have also updated the docs for the same.
r62 will contain:
1. Automatic filtering of results based on predefined environment variables
like domain, list and user
2. `Create object` queries, a quite straight forward one.
3. `Delete object` queries
4. Turn on/off the environment variables
Footnotes
[1]
http://bazaar.launchpad.net/~rajeevs1992/mailman.client/mailmancli/revision/61
More information about the Mailman-Developers
mailing list