Renaming folder to artifacts
This commit is contained in:
Родитель
1b92d4f941
Коммит
320cfe9372
|
@ -58,7 +58,7 @@ dlldata.c
|
|||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
#artifacts/
|
||||
**/Properties/launchSettings.json
|
||||
|
||||
*_i.c
|
||||
|
|
|
@ -7,6 +7,7 @@ pkg_resources.declare_namespace(__name__)
|
|||
|
||||
import knack.help # pylint: disable=unused-import
|
||||
|
||||
from ._help import load_artifacts_help
|
||||
|
||||
def load_params(_):
|
||||
import knack.arguments # pylint: disable=redefined-outer-name
|
||||
|
@ -14,3 +15,5 @@ def load_params(_):
|
|||
|
||||
def load_commands():
|
||||
import knack.commands # pylint: disable=redefined-outer-name
|
||||
|
||||
load_artifacts_help()
|
|
@ -7,14 +7,15 @@ from knack.help_files import helps # pylint: disable=unused-import
|
|||
|
||||
# pylint: disable=line-too-long
|
||||
|
||||
helps['package'] = """
|
||||
type: group
|
||||
short-summary: Commands to work with and manage packages
|
||||
long-summary:
|
||||
"""
|
||||
def load_artifacts_help():
|
||||
helps['artifacts'] = """
|
||||
type: group
|
||||
short-summary: Manage azure devops artifacts.
|
||||
long-summary:
|
||||
"""
|
||||
|
||||
helps['package universal'] = """
|
||||
type: group
|
||||
short-summary: (PREVIEW) Manage Universal Packages
|
||||
long-summary:
|
||||
"""
|
||||
helps['artifacts universal'] = """
|
||||
type: group
|
||||
short-summary: (PREVIEW) Manage Universal Packages
|
||||
long-summary:
|
||||
"""
|
|
@ -5,6 +5,6 @@
|
|||
|
||||
from knack.arguments import ArgumentsContext
|
||||
|
||||
def load_package_arguments(cli_command_loader):
|
||||
with ArgumentsContext(cli_command_loader, 'package universal') as ac:
|
||||
def load_package_arguments(self, _):
|
||||
with ArgumentsContext(cli_command_loader, 'artifacts universal') as ac:
|
||||
ac.argument('team_instance', options_list=('--instance', '-i'))
|
|
@ -9,7 +9,7 @@ import os
|
|||
from knack.log import get_logger
|
||||
from knack.util import CLIError
|
||||
|
||||
from vsts.cli.common.services import _get_credentials
|
||||
from azext_dev.dev.common.services import _get_credentials
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
|
@ -3,11 +3,7 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
import platform
|
||||
|
||||
from knack.commands import CommandGroup
|
||||
|
||||
def load_package_commands(cli_command_loader):
|
||||
with CommandGroup(cli_command_loader, 'package universal', 'vsts.cli.package.common.universal#{}') as g:
|
||||
g.command('publish', 'publish_package')
|
||||
g.command('download', 'download_package')
|
||||
with self.command_group('artifacts universal') as g:
|
||||
g.custom_command('publish', 'artifacts.universal.publish_package')
|
||||
g.custom_command('download', 'artifacts.universal.download_package')
|
|
@ -7,7 +7,7 @@ import sys
|
|||
|
||||
import colorama
|
||||
from knack.log import get_logger
|
||||
from vsts.cli.common.services import get_core_client, resolve_instance
|
||||
from azext_dev.dev.common.services import get_core_client, resolve_instance
|
||||
|
||||
from .artifacttool import ArtifactToolInvoker
|
||||
from .artifacttool_updater import ArtifactToolUpdater
|
Загрузка…
Ссылка в новой задаче