diff options
| author | Barry Warsaw | 2017-07-22 03:02:06 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-07-22 03:02:06 +0000 |
| commit | 02826321d0430d7ffc1f674eeff4221941689ef7 (patch) | |
| tree | 1a8e56dff0eab71e58e5fc9ecc5f3c614d7edca7 /src/mailman/commands/docs/info.rst | |
| parent | f54c045519300f6f70947d1114f46c2b8ae0d368 (diff) | |
| parent | f00b94f18e1d82d1488cbcee6053f03423bc2f49 (diff) | |
| download | mailman-02826321d0430d7ffc1f674eeff4221941689ef7.tar.gz mailman-02826321d0430d7ffc1f674eeff4221941689ef7.tar.zst mailman-02826321d0430d7ffc1f674eeff4221941689ef7.zip | |
Diffstat (limited to 'src/mailman/commands/docs/info.rst')
| -rw-r--r-- | src/mailman/commands/docs/info.rst | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/mailman/commands/docs/info.rst b/src/mailman/commands/docs/info.rst index 6fce70783..219143cab 100644 --- a/src/mailman/commands/docs/info.rst +++ b/src/mailman/commands/docs/info.rst @@ -6,15 +6,9 @@ You can get information about Mailman's environment by using the command line script ``mailman info``. By default, the info is printed to standard output. :: - >>> from mailman.commands.cli_info import Info - >>> command = Info() + >>> command = cli('mailman.commands.cli_info.info') - >>> class FakeArgs: - ... output = None - ... verbose = None - >>> args = FakeArgs() - - >>> command.process(args) + >>> command('mailman info') GNU Mailman 3... Python ... ... @@ -28,8 +22,7 @@ By passing in the ``-o/--output`` option, you can print the info to a file. >>> from mailman.config import config >>> import os >>> output_path = os.path.join(config.VAR_DIR, 'output.txt') - >>> args.output = output_path - >>> command.process(args) + >>> command('mailman info -o ' + output_path) >>> with open(output_path) as fp: ... print(fp.read()) GNU Mailman 3... @@ -44,8 +37,6 @@ By passing in the ``-o/--output`` option, you can print the info to a file. You can also get more verbose information, which contains a list of the file system paths that Mailman is using. - >>> args.output = None - >>> args.verbose = True >>> config.create_paths = False >>> config.push('fhs', """ ... [mailman] @@ -57,7 +48,7 @@ system paths that Mailman is using. The `Filesystem Hierarchy Standard`_ layout is the same everywhere by definition. - >>> command.process(args) + >>> command('mailman info --verbose') GNU Mailman 3... Python ... ... |
