public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ashley E Desimone" <ashley.e.desimone@intel.com>
To: devel@edk2.groups.io
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>,
	Puja Pandya <puja.pandya@intel.com>,
	Erik Bjorge <erik.c.bjorge@intel.com>,
	Bret Barkelew <Bret.Barkelew@microsoft.com>,
	Prince Agyeman <prince.agyeman@intel.com>
Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Add source_manifest_repo argument to edkrepo_command.py
Date: Fri,  1 May 2020 11:37:07 -0700	[thread overview]
Message-ID: <20200501183707.16812-1-ashley.e.desimone@intel.com> (raw)

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 <ashley.e.desimone@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Puja Pandya <puja.pandya@intel.com>
Cc: Erik Bjorge <erik.c.bjorge@intel.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Prince Agyeman <prince.agyeman@intel.com>
---
 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


                 reply	other threads:[~2020-05-01 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200501183707.16812-1-ashley.e.desimone@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox