Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions airflow-core/src/airflow/cli/commands/provider_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import sys

from airflow.cli.simple_table import AirflowConsole
from airflow.cli.utils import deprecated_for_airflowctl
from airflow.providers_manager import ProvidersManager
from airflow.utils.cli import suppress_logs_and_warning
from airflow.utils.providers_configuration_loader import providers_configuration_loaded
Expand All @@ -33,6 +34,7 @@ def _remove_rst_syntax(value: str) -> str:
return re.sub("[`_<>]", "", value.strip(" \n."))


@deprecated_for_airflowctl("airflowctl providers get")
@suppress_logs_and_warning
@providers_configuration_loaded
def provider_get(args):
Expand All @@ -55,6 +57,7 @@ def provider_get(args):
raise SystemExit(f"No such provider installed: {args.provider_name}")


@deprecated_for_airflowctl("airflowctl providers list")
@suppress_logs_and_warning
@providers_configuration_loaded
def providers_list(args):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import pytest

from airflow.cli.commands import asset_command, dag_command, pool_command, variable_command
from airflow.cli.commands import asset_command, dag_command, pool_command, provider_command, variable_command

# (command callable, expected airflowctl replacement recorded by the decorator)
MIGRATED_CLI_COMMANDS = [
Expand All @@ -51,6 +51,8 @@
(asset_command.asset_materialize, "airflowctl assets materialize"),
(asset_command.asset_list, "airflowctl assets list / airflowctl assets list-aliases"),
(asset_command.asset_details, "airflowctl assets get / airflowctl assets get-by-alias"),
(provider_command.provider_get, "airflowctl providers get"),
(provider_command.providers_list, "airflowctl providers list"),
]


Expand Down
Loading