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/config_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
from pygments.lexers.configs import IniLexer

from airflow.cli.simple_table import AirflowConsole
from airflow.cli.utils import deprecated_for_airflowctl
from airflow.configuration import AIRFLOW_CONFIG, ConfigModifications, conf
from airflow.exceptions import AirflowConfigException
from airflow.utils.cli import should_use_colors
from airflow.utils.code_utils import get_terminal_formatter
from airflow.utils.providers_configuration_loader import providers_configuration_loaded


@deprecated_for_airflowctl("airflowctl config list")
@providers_configuration_loaded
def show_config(args):
"""Show current application configuration."""
Expand Down Expand Up @@ -63,6 +65,7 @@ def show_config(args):
print(code)


@deprecated_for_airflowctl("airflowctl config get")
@providers_configuration_loaded
def get_value(args):
"""Get one value from configuration."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@

import pytest

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

# (command callable, expected airflowctl replacement recorded by the decorator)
MIGRATED_CLI_COMMANDS = [
Expand All @@ -53,6 +60,8 @@
(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"),
(config_command.get_value, "airflowctl config get"),
(config_command.show_config, "airflowctl config list"),
]


Expand Down
Loading