##### SUMMARY
While `ansible-config dump` is a very useful tool for determining the configuration used by Ansible at runtime, it does have a major flaw: its output is not machine parseable.

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
ansible-config

##### ADDITIONAL INFORMATION
ansible-config should have an option to dump config in a machine parseable format like JSON or YAML, so it can be consumed by other tools.

'''
        Shows the current settings, merges ansible.cfg if specified
        '''
        if context.CLIARGS['type'] == 'base':
            
            text = self._get_global_configs()
        elif context.CLIARGS['type'] == 'all':
            
            text = self._get_global_configs()
            
            for ptype in C.CONFIGURABLE_PLUGINS:
                text.append('\n%s:\n%s' % (ptype.upper(), '=' * len(ptype)))
                text.extend(self._get_plugin_configs(ptype, context.CLIARGS['args']))
        else:
            
            text = self._get_plugin_configs(context.CLIARGS['type'], context.CLIARGS['args'])
        self.pager(to_text('\n'.join(text), errors='surrogate_or_strict'))
def main(args=None):
    ConfigCLI.cli_executor(args)
if __name__ == '__main__':
    main()