diff options
Diffstat (limited to 'src/mailman/commands')
| -rw-r--r-- | src/mailman/commands/cli_inject.py | 2 | ||||
| -rw-r--r-- | src/mailman/commands/cli_status.py | 2 | ||||
| -rw-r--r-- | src/mailman/commands/cli_withlist.py | 10 | ||||
| -rw-r--r-- | src/mailman/commands/docs/aliases.rst | 2 | ||||
| -rw-r--r-- | src/mailman/commands/docs/conf.rst | 6 | ||||
| -rw-r--r-- | src/mailman/commands/docs/members.rst | 4 | ||||
| -rw-r--r-- | src/mailman/commands/tests/test_create.py | 4 |
7 files changed, 14 insertions, 16 deletions
diff --git a/src/mailman/commands/cli_inject.py b/src/mailman/commands/cli_inject.py index c467c2508..1b7f15f7b 100644 --- a/src/mailman/commands/cli_inject.py +++ b/src/mailman/commands/cli_inject.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. -"""bin/mailman inject""" +"""The `mailman inject` subcommand.""" __all__ = [ 'Inject', diff --git a/src/mailman/commands/cli_status.py b/src/mailman/commands/cli_status.py index 34420954b..7faab7941 100644 --- a/src/mailman/commands/cli_status.py +++ b/src/mailman/commands/cli_status.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. -"""bin/mailman status.""" +"""The `mailman status` subcommand.""" __all__ = [ 'Status', diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py index c0c9b3202..e3307d7b4 100644 --- a/src/mailman/commands/cli_withlist.py +++ b/src/mailman/commands/cli_withlist.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. -"""bin/mailman withlist""" +"""The `mailman shell` subcommand.""" __all__ = [ 'Shell', @@ -190,7 +190,7 @@ Programmatically, you can write a function to operate on a mailing list, and this script will take care of the housekeeping (see below for examples). In that case, the general usage syntax is: - % bin/mailman withlist [options] listname [args ...]""")) + % mailman withlist [options] listname [args ...]""")) print() print(_("""\ Here's an example of how to use the --run option. Say you have a file in the @@ -207,7 +207,7 @@ functions: You can print the list's posting address by running the following from the command line: - % bin/mailman withlist -r listaddr mylist@example.com + % mailman withlist -r listaddr mylist@example.com Importing listaddr ... Running listaddr.listaddr() ... mylist@example.com""")) @@ -215,7 +215,7 @@ command line: print(_("""\ And you can print the list's request address by running: - % bin/mailman withlist -r listaddr.requestaddr mylist + % mailman withlist -r listaddr.requestaddr mylist Importing listaddr ... Running listaddr.requestaddr() ... mylist-request@example.com""")) @@ -232,7 +232,7 @@ mailing list. You could put the following function in a file called and run this from the command line: - % bin/mailman withlist -r change mylist@example.com 'My List'""")) + % mailman withlist -r change mylist@example.com 'My List'""")) diff --git a/src/mailman/commands/docs/aliases.rst b/src/mailman/commands/docs/aliases.rst index 528a77770..75a9d3c11 100644 --- a/src/mailman/commands/docs/aliases.rst +++ b/src/mailman/commands/docs/aliases.rst @@ -6,7 +6,7 @@ For some mail servers, Mailman must generate data files that are used to hook Mailman up to the mail server. The details of this differ for each mail server. Generally these files are automatically kept up-to-date when mailing lists are created or removed, but you might occasionally need to manually -regenerate the file. The ``bin/mailman aliases`` command does this. +regenerate the file. The ``mailman aliases`` command does this. >>> class FakeArgs: ... directory = None diff --git a/src/mailman/commands/docs/conf.rst b/src/mailman/commands/docs/conf.rst index 0ff5064bb..1db85918f 100644 --- a/src/mailman/commands/docs/conf.rst +++ b/src/mailman/commands/docs/conf.rst @@ -2,13 +2,13 @@ Display configuration values ============================ -Just like the `Postfix command postconf(1)`_, the ``bin/mailman conf`` command +Just like the `Postfix command postconf(1)`_, the ``mailman conf`` command lets you dump one or more Mailman configuration variables to standard output or a file. Mailman's configuration is divided in multiple sections which contain multiple -key-value pairs. The ``bin/mailman conf`` command allows you to display -a specific key-value pair, or several key-value pairs. +key-value pairs. The ``mailman conf`` command allows you to display a +specific key-value pair, or several key-value pairs. >>> class FakeArgs: ... key = None diff --git a/src/mailman/commands/docs/members.rst b/src/mailman/commands/docs/members.rst index 490287235..c90418181 100644 --- a/src/mailman/commands/docs/members.rst +++ b/src/mailman/commands/docs/members.rst @@ -2,8 +2,8 @@ Managing members ================ -The ``bin/mailman members`` command allows a site administrator to display, -add, and remove members from a mailing list. +The ``mailman members`` command allows a site administrator to display, add, +and remove members from a mailing list. :: >>> mlist1 = create_list('test1@example.com') diff --git a/src/mailman/commands/tests/test_create.py b/src/mailman/commands/tests/test_create.py index d9e90df26..d7e17e5d2 100644 --- a/src/mailman/commands/tests/test_create.py +++ b/src/mailman/commands/tests/test_create.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. -"""Test `bin/mailman create`.""" +"""Test the `mailman create` subcommand.""" __all__ = [ 'TestCreate', @@ -51,8 +51,6 @@ class FakeParser: class TestCreate(unittest.TestCase): - """Test `bin/mailman create`.""" - layer = ConfigLayer def setUp(self): |
