community.general/lib/ansible
Toshio Kuratomi 7e92ff823e Split up the base_parser function
The goal of breaking apart the base_parser() function is to get rid of
a bunch of conditionals and parameters in the code and, instead, make
code look like simple composition.

When splitting, a choice had to be made as to whether this would operate
by side effect (modifying a passed in parser) or side effect-free
(returning a new parser everytime).

Making a version that's side-effect-free appears to be fighting with the
optparse API (it wants to work by creating a parser object, configuring
the object, and then parsing the arguments with it) so instead, make it
clear that our helper functions are modifying the passed in parser by
(1) not returning the parser and (2) changing the function names to be
more clear that it is operating by side-effect.

Also move all of the generic optparse code, along with the argument
context classes, into a new subdirectory.
2019-01-03 18:12:23 -08:00
..
arguments Split up the base_parser function 2019-01-03 18:12:23 -08:00
cli Split up the base_parser function 2019-01-03 18:12:23 -08:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Update unit tests for configmanager 2018-12-18 12:20:35 -08:00
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00
executor Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
galaxy Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
inventory Fix reverse_inventory order to work on python3 (#49895) 2018-12-17 15:39:29 -06:00
module_utils Add a CLIArgs Singleton class that will hold the parse cli arguments 2019-01-03 18:12:23 -08:00
modules dnf - fix conf_file loading (#50515) 2019-01-03 15:25:58 -05:00
parsing Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
playbook Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
plugins Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
template Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
utils Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
vars Misc typo fixes (#49816) 2018-12-14 15:12:58 +05:30
__init__.py
constants.py become_method: make dzdo more like sudo (#47946) 2018-12-04 18:24:32 -05:00
context.py Split up the base_parser function 2019-01-03 18:12:23 -08:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00