bugraoz93 commented on code in PR #53800:
URL: https://github.com/apache/airflow/pull/53800#discussion_r2237595733
##########
airflow-ctl/src/airflowctl/ctl/cli_config.py:
##########
@@ -348,10 +350,20 @@ def __init__(self, file_path: str | Path | None = None):
self.commands_map = {}
self.group_commands_list = []
self.file_path = inspect.getfile(BaseOperations) if file_path is None
else file_path
+ # Excluded Lists are in Class Level for further usage and avoid
searching them
# Exclude parameters that are not needed for CLI from datamodels
self.excluded_parameters = ["schema_"]
# This list is used to determine if the command/operation needs to
output data
self.output_command_list = ["list", "get", "create", "delete"]
+ self.exclude_operation_names = ["LoginOperations",
"VersionOperations", "BaseOperations"]
+ self.exclude_method_names = [
+ "error",
+ "__init__",
+ "__init_subclass__",
Review Comment:
Thanks for asking! BaseOperations are already excluded in another list from
the higher level methods. This makes the method not available in the CLI
--
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]