You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/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.
6 years ago
..
arguments Split up the base_parser function 6 years ago
cli Split up the base_parser function 6 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config Update unit tests for configmanager 6 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 6 years ago
executor Save the command line arguments into a global context 6 years ago
galaxy Save the command line arguments into a global context 6 years ago
inventory Fix reverse_inventory order to work on python3 (#49895) 6 years ago
module_utils Add a CLIArgs Singleton class that will hold the parse cli arguments 6 years ago
modules dnf - fix conf_file loading (#50515) 6 years ago
parsing Update bare exceptions to specify Exception. 6 years ago
playbook Save the command line arguments into a global context 6 years ago
plugins Save the command line arguments into a global context 6 years ago
template Update bare exceptions to specify Exception. 6 years ago
utils Save the command line arguments into a global context 6 years ago
vars Misc typo fixes (#49816) 6 years ago
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 8 years ago
constants.py become_method: make dzdo more like sudo (#47946) 6 years ago
context.py Split up the base_parser function 6 years ago
release.py Codename: How Many More Times 6 years ago