From 311770b96a0ba74745c5d7dfc1bb1f44a919b460 Mon Sep 17 00:00:00 2001 From: RakeshMohanMSFT <49954584+RakeshMohanMSFT@users.noreply.github.com> Date: Mon, 16 Jan 2023 16:15:49 +0530 Subject: [PATCH] Issue 1698 add examples for az repos import create command (#1321) * Issue 1698 add examples for az repos import create command Fixes https://github.com/Azure/azure-cli-extensions/issues/1698 * Update _help.py --- azure-devops/azext_devops/dev/repos/_help.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-devops/azext_devops/dev/repos/_help.py b/azure-devops/azext_devops/dev/repos/_help.py index 45292b97..93f90b6a 100644 --- a/azure-devops/azext_devops/dev/repos/_help.py +++ b/azure-devops/azext_devops/dev/repos/_help.py @@ -40,7 +40,12 @@ def load_repos_help(): helps['repos import'] = """ type: group short-summary: Manage Git repositories import - long-summary: + long-summary: This command imports the public repo fabrikam-open-source to the empty Git repo fabrikam-open-source for the default configuration + az devops configure --defaults organization=https://dev.azure.com/fabrikamprime project="Fabrikam Fiber". + examples: + - name: Manage Git repositories import. + text: | + az repos import create --git-source-url https://github.com/fabrikamprime/fabrikam-open-source --repository fabrikam-open-source """ helps['repos policy'] = """