public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Shell feature?
@ 2020-02-10 20:11 Andrew Fish
  2020-02-11 20:28 ` [edk2-devel] " Tim Lewis
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Fish @ 2020-02-10 20:11 UTC (permalink / raw)
  To: devel@edk2.groups.io

I wanted to start a conversation on the mailing list prior to writing up a BZ, to make sure I'm not missing anything, or in case there is a better way to implement this. 

I was thinking it would be good to have a Shell API that lets you associate a file type with an internal or external shell command. The Idea would be to pre-pend the internal/external shell command to the file name and also pass the arguments.

So this:
fs0:>dump.py 1  2 3

Becomes:
fs0:>python3.efi dump.py 1  2 3

Basically you just need an API like:

ShellAddScriptingLanguage (L".py", L"python3.efi");

Seems like this could just plug into the Shell via a ShellExecute(). So for example you could make Python a UEFI Shell command via a library and that library constructor could also teach the shell that a .py file could be an executable?

Thanks,

Andrew Fish

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-02-15  1:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-10 20:11 Shell feature? Andrew Fish
2020-02-11 20:28 ` [edk2-devel] " Tim Lewis
2020-02-11 21:30   ` Jim Dailey
2020-02-12  1:30     ` Carsey, Jaben
2020-02-12  2:08       ` Andrew Fish
2020-02-12  6:04         ` Carsey, Jaben
     [not found]     ` <8A8C80EA-FDD7-4AF6-896C-7A7263446D62@apple.com>
2020-02-15  1:30       ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox