1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/cli
Toshio Kuratomi afdbb0d9d5 Save the command line arguments into a global context
* Once cli args are parsed, they're constant.  So, save the parsed args
  into the global context for everyone else to use them from now on.
* Port cli scripts to use the CLIARGS in the context
* Refactor call to parse cli args into the run() method
* Fix unittests for changes to the internals of CLI arg parsing
* Port callback plugins to use context.CLIARGS
  * Got rid of the private self._options attribute
  * Use context.CLIARGS in the individual callback plugins instead.
  * Also output positional arguments in default and unixy plugins
  * Code has been simplified since we're now dealing with a dict rather
    than Optparse.Value
2019-01-03 18:12:23 -08:00
..
test_data/role_skeleton Link to the Galaxy platforms list from the meta file template (#34046) 2018-09-17 13:39:54 -05:00
__init__.py galaxy info displayed 'galaxy_info' section wrong 2016-05-31 13:28:15 -04:00
test_adhoc.py Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
test_cli.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_console.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_galaxy.py Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
test_playbook.py Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00
test_vault.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00