azdev/utilities/__init__.py (92 lines of code) (raw):

# ----------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------------------- from .config import ( get_azure_config, get_azure_config_dir, get_azdev_config, get_azdev_config_dir, ) from .command import ( call, cmd, py_cmd, pip_cmd, CommandError ) from .const import ( COMMAND_MODULE_PREFIX, EXTENSION_PREFIX, IS_WINDOWS, ENV_VAR_TEST_MODULES, ENV_VAR_TEST_LIVE, ENV_VAR_VIRTUAL_ENV, EXT_REPO_NAME ) from .display import ( display, output, heading, subheading ) from .git_util import ( diff_branches, filter_by_git_diff, diff_branch_file_patch, diff_branches_detail ) from .path import ( extract_module_name, find_file, find_files, make_dirs, get_env_path, get_azdev_repo_path, get_cli_repo_path, get_ext_repo_paths, get_path_table, get_name_index, calc_selected_mod_names ) from .testing import test_cmd from .tools import ( require_virtual_env, require_azure_cli ) __all__ = [ 'COMMAND_MODULE_PREFIX', 'EXTENSION_PREFIX', 'display', 'output', 'heading', 'subheading', 'diff_branches', 'filter_by_git_diff', 'call', 'cmd', 'py_cmd', 'pip_cmd', 'CommandError', 'test_cmd', 'get_env_path', 'get_azure_config_dir', 'get_azure_config', 'get_azdev_config_dir', 'get_azdev_config', 'ENV_VAR_TEST_MODULES', 'ENV_VAR_TEST_LIVE', 'ENV_VAR_VIRTUAL_ENV', 'EXT_REPO_NAME', 'IS_WINDOWS', 'extract_module_name', 'find_file', 'find_files', 'make_dirs', 'get_azdev_repo_path', 'get_cli_repo_path', 'get_ext_repo_paths', 'get_path_table', 'get_name_index', 'require_virtual_env', 'require_azure_cli', 'diff_branches_detail', 'diff_branch_file_patch', 'calc_selected_mod_names', ]