public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Nate DeSimone" <nathaniel.l.desimone@intel.com>
To: devel@edk2.groups.io
Cc: "Ashley DeSimone" <ashley.e.desimone@intel.com>,
	"Puja Pandya" <puja.pandya@intel.com>,
	"Erik Bjorge" <erik.c.bjorge@intel.com>,
	"Bret Barkelew" <Bret.Barkelew@microsoft.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Display commands alphabetically
Date: Fri, 27 Mar 2020 13:31:26 -0700	[thread overview]
Message-ID: <20200327203126.28208-1-nathaniel.l.desimone@intel.com> (raw)

Currently edkrepo --help shows a listing of commands
that is not in alphabetical order. This is confusing.
This change makes the list shown in alphabetical order.

Cc: Ashley DeSimone <ashley.e.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: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
---
 edkrepo/commands/composite_command.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/edkrepo/commands/composite_command.py b/edkrepo/commands/composite_command.py
index b476445..ff53d3b 100644
--- a/edkrepo/commands/composite_command.py
+++ b/edkrepo/commands/composite_command.py
@@ -36,4 +36,4 @@ class CompositeCommand(object):
         command_names = []
         for command in self._commands:
             command_names.append(command.get_metadata()['name'])
-        return command_names
+        return sorted(command_names)
--
2.25.2


             reply	other threads:[~2020-03-27 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27 20:31 Nate DeSimone [this message]
2020-03-27 22:28 ` [edk2-staging/EdkRepo] [PATCH] EdkRepo: Display commands alphabetically Desimone, Ashley E
2020-03-31 22:59 ` Bjorge, Erik C

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=20200327203126.28208-1-nathaniel.l.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