Thanks Mark,
The omission of the code to make the examples work seems to need correction. Perhaps I can submit an update to the project. Had me scratching my head for a long time. Obviously I knew there were imports etc missing, but what to put?
I have this going, and it is great. But I recall seeing something called mmclient or similar which has simple commands like show user, show lists, and so on. Is that still available?
Now knowing how mailman shell works, anybody could write their own commands, but I don't want to reinvent wheels.
Andrew
-----Original Message----- From: Mark Sapiro <mark@msapiro.net> Sent: Tuesday, 11 June 2019 1:26 PM To: mailman-users@mailman3.org
Perhaps you saw the
command('mailman shell --details')
line in the docs at <https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/s hell.html#getting-detailed-help> in any case, that requires two things to precede it. The first is part of the doctest infrastructure and is not evident in the docs. that step isfrom mailman.testing.documentation import cli
The second step is in the docs and is
command = cli('mailman.commands.cli_withlist.shell')
If you do those two steps within
mailman shell
, then the stepcommand('mailman shell --details')
will work, but as I said, this is just the same as doing
mailman shell --details
at a command prompt.