edq .cli .config .encrypt
Shallow frontend for edq.config.cmd.encrypt.
usage: python3 -m edq.cli.config.encrypt [-h] [--dry-run] [PATHS ...]
Encrypt any unencrypted secrets present in configuration files.
options:
-h, --help show this help message and exit
encrypt options:
--dry-run Do not write any data, just state would would happen.
PATHS Optional paths to look for unencrypted secrets. If no paths
are specified, all active config paths will be used.
1""" 2Shallow frontend for edq.config.cmd.encrypt. 3""" 4 5import argparse 6import sys 7 8import edq.config.cmd.encrypt 9import edq.core.argparser 10 11def run_cli(args: argparse.Namespace) -> int: 12 """ Run the CLI. """ 13 14 return edq.config.cmd.encrypt.run(args) 15 16def main() -> int: 17 """ Get a parser, parse the args, and call run. """ 18 19 return run_cli(_get_parser().parse_args()) 20 21def _get_parser() -> argparse.ArgumentParser: 22 """ Get a parser and add addition flags. """ 23 24 parser = edq.core.argparser.get_default_parser(edq.config.cmd.encrypt.__doc__.strip()) 25 edq.config.cmd.encrypt.modify_parser(parser) 26 27 return parser 28 29if (__name__ == '__main__'): 30 sys.exit(main())
def
run_cli(args: argparse.Namespace) -> int:
12def run_cli(args: argparse.Namespace) -> int: 13 """ Run the CLI. """ 14 15 return edq.config.cmd.encrypt.run(args)
Run the CLI.
def
main() -> int:
17def main() -> int: 18 """ Get a parser, parse the args, and call run. """ 19 20 return run_cli(_get_parser().parse_args())
Get a parser, parse the args, and call run.