code: def hooks(ctx):
      
      from ..hooks.run_hooks_hook import RunHooksHook
  
      bundles = _get_bundles(ctx.obj.data['env'])
      hooks = RunHooksHook(None).collect_from_bundles(bundles)
      print_table(('Hook Name',
                   'Default Bundle Module',
                   'Bundle Module Override Attr',
                   'Description'),
                  [(hook.name,
                   hook.bundle_module_name or '(None)',
                   hook.bundle_override_module_name_attr or '(None)',
                   format_docstring(hook.__doc__) or '(None)') for hook in hooks])
docs: List registered hooks (in the order they run).