kaxil commented on a change in pull request #17625:
URL: https://github.com/apache/airflow/pull/17625#discussion_r689124542



##########
File path: airflow/cli/cli_parser.py
##########
@@ -1267,6 +1267,18 @@ class GroupCommand(NamedTuple):
         
func=lazy_load_command('airflow.cli.commands.provider_command.connection_field_behaviours'),
         args=(ARG_OUTPUT, ARG_VERBOSE),
     ),
+    ActionCommand(
+        name='logging',
+        help='Get information about task logging handlers provided',
+        
func=lazy_load_command('airflow.cli.commands.provider_command.logging_list'),
+        args=(ARG_OUTPUT, ARG_VERBOSE),
+    ),
+    ActionCommand(
+        name='secrets',
+        help='Get information about secret backends provided',
+        
func=lazy_load_command('airflow.cli.commands.provider_command.secret_backends_list'),

Review comment:
       ```suggestion
           
func=lazy_load_command('airflow.cli.commands.provider_command.secrets_backends_list'),
   ```

##########
File path: airflow/cli/cli_parser.py
##########
@@ -1267,6 +1267,18 @@ class GroupCommand(NamedTuple):
         
func=lazy_load_command('airflow.cli.commands.provider_command.connection_field_behaviours'),
         args=(ARG_OUTPUT, ARG_VERBOSE),
     ),
+    ActionCommand(
+        name='logging',
+        help='Get information about task logging handlers provided',
+        
func=lazy_load_command('airflow.cli.commands.provider_command.logging_list'),
+        args=(ARG_OUTPUT, ARG_VERBOSE),
+    ),
+    ActionCommand(
+        name='secrets',
+        help='Get information about secret backends provided',

Review comment:
       ```suggestion
           help='Get information about secrets backends provided',
   ```

##########
File path: airflow/cli/commands/provider_command.py
##########
@@ -113,3 +113,27 @@ def extra_links_list(args):
             "extra_link_class_name": x,
         },
     )
+
+
+@suppress_logs_and_warning
+def logging_list(args):
+    """Lists all log task handlers at the command line"""
+    AirflowConsole().print_as(
+        data=list(ProvidersManager().logging_class_names),
+        output=args.output,
+        mapper=lambda x: {
+            "logging_class_name": x,
+        },
+    )
+
+
+@suppress_logs_and_warning
+def secret_backends_list(args):
+    """Lists all Secret Backends at the command line"""
+    AirflowConsole().print_as(
+        data=list(ProvidersManager().secret_backend_class_names),

Review comment:
       ```suggestion
           data=list(ProvidersManager().secrets_backend_class_names),
   ```

##########
File path: airflow/cli/commands/provider_command.py
##########
@@ -113,3 +113,27 @@ def extra_links_list(args):
             "extra_link_class_name": x,
         },
     )
+
+
+@suppress_logs_and_warning
+def logging_list(args):
+    """Lists all log task handlers at the command line"""
+    AirflowConsole().print_as(
+        data=list(ProvidersManager().logging_class_names),
+        output=args.output,
+        mapper=lambda x: {
+            "logging_class_name": x,
+        },
+    )
+
+
+@suppress_logs_and_warning
+def secret_backends_list(args):
+    """Lists all Secret Backends at the command line"""
+    AirflowConsole().print_as(
+        data=list(ProvidersManager().secret_backend_class_names),
+        output=args.output,
+        mapper=lambda x: {
+            "secret_backend_class_name": x,

Review comment:
       ```suggestion
               "secrets_backend_class_name": x,
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to