From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.1294.1588358230538648269 for ; Fri, 01 May 2020 11:37:10 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: PXmlXuq8i3/ionMiBT8SWWKgQvFOaUihfdtx/woDYLk3nzdczSIXrwy1k82h8U26p13tuy+aZJ uHQwfEc48N0A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 11:37:10 -0700 IronPort-SDR: /umWbO17z3RI1FH8k5boGXva7gF4zNbjs/8HwPWYaO5GN9bxLvX6fx7YloPUZMHMhQOXbBq7e1 fVSoslqc/Zcg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,340,1583222400"; d="scan'208";a="293957283" Received: from aedesimo-desk.amr.corp.intel.com ([10.212.210.118]) by fmsmga002.fm.intel.com with ESMTP; 01 May 2020 11:37:09 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Erik Bjorge , Bret Barkelew , Prince Agyeman Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Add source_manifest_repo argument to edkrepo_command.py Date: Fri, 1 May 2020 11:37:07 -0700 Message-Id: <20200501183707.16812-1-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Add a common definition of the source_manifest_repo argument to edkrepo_command.py to enable selection of the correct source global manifest repository by commands. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- edkrepo/commands/arguments/edkrepo_cmd_args.py | 1 + edkrepo/commands/edkrepo_command.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/edkrepo/commands/arguments/edkrepo_cmd_args.py b/edkrepo/commands/arguments/edkrepo_cmd_args.py index f2d7eb6..e8a6138 100644 --- a/edkrepo/commands/arguments/edkrepo_cmd_args.py +++ b/edkrepo/commands/arguments/edkrepo_cmd_args.py @@ -16,3 +16,4 @@ DRY_RUN_HELP = "Don't actually do anything" OVERRIDE_HELP = 'Ignore warnings' SUBMODULE_SKIP_HELP = 'Skip the pull or sync of any submodules.' COLOR_HELP = 'Force color output (useful with \'less -r\')' +SOURCE_MANIFEST_REPO_HELP = "The name of the workspace's source global manifest repository" diff --git a/edkrepo/commands/edkrepo_command.py b/edkrepo/commands/edkrepo_command.py index f69bdb8..700b48a 100644 --- a/edkrepo/commands/edkrepo_command.py +++ b/edkrepo/commands/edkrepo_command.py @@ -48,3 +48,9 @@ SubmoduleSkipArgument = {'name': 'skip-submodule', 'positional' : False, 'required' : False, 'help-text' : arguments.SUBMODULE_SKIP_HELP} + +SourceManRepoArgument = {'name' : 'source-manifest-repo', + 'positional': False, + 'required' : False, + 'action' : 'store', + 'help-text' : arguments.SOURCE_MANIFEST_REPO_HELP} -- 2.16.2.windows.1