lms.cli.config.list

List the current configuration options.

usage: python3 -m lms.cli.config.list [-h] [--version] [--show-origin]
                                      [--skip-header]

List the current configuration options.

options:
  -h, --help     show this help message and exit
  --version      show program's version number and exit

list options:
  --show-origin  Display where each configuration's value was obtained from.
  --skip-header  Skip headers when displaying configs.
 1"""
 2List the current configuration options.
 3"""
 4
 5import argparse
 6import sys
 7
 8import edq.cli.config.list
 9
10import lms.cli.parser
11
12CONFIG_FIELD_SEPARATOR: str = "\t"
13
14def run_cli(args: argparse.Namespace) -> int:
15    """ Run the CLI. """
16
17    return int(edq.cli.config.list.run_cli(args))
18
19def main() -> int:
20    """ Get a parser, parse the args, and call run. """
21
22    return run_cli(_get_parser().parse_args())
23
24def _get_parser() -> argparse.ArgumentParser:
25    """ Get a parser and add addition flags. """
26
27    parser = lms.cli.parser.get_parser(__doc__.strip(),
28            include_server = False,
29            include_auth = False,
30    )
31
32    edq.cli.config.list.modify_parser(parser)
33
34    return parser
35
36if (__name__ == '__main__'):
37    sys.exit(main())
CONFIG_FIELD_SEPARATOR: str = '\t'
def run_cli(args: argparse.Namespace) -> int:
15def run_cli(args: argparse.Namespace) -> int:
16    """ Run the CLI. """
17
18    return int(edq.cli.config.list.run_cli(args))

Run the CLI.

def main() -> int:
20def main() -> int:
21    """ Get a parser, parse the args, and call run. """
22
23    return run_cli(_get_parser().parse_args())

Get a parser, parse the args, and call run.