Next extension question. Is there a programmatic ...
# lucee
a
Next extension question. Is there a programmatic way of getting an installed extension's version I need to write a test to verify the correct version has been installed. I did a quick google and nothing leapt out at me.
I kinda expected there to be a list of extensions in the server scope, but... nope
aha!
extensionList()
seems to be something. https://docs.lucee.org/reference/functions/extensionlist.html Interesting use of the word "list" in that function name. Given it returns a query, and "list" has specific meaning in CFML. But hey ho.
✅ 1
And yes, this has done fine. Sorry to have disturbed.
c
I've been using:
Copy code
serverAdmin = New Administrator( "server", server.system.environment.LUCEE_ADMIN_PASSWORD )
extensions = serverAdmin.getServerExtensions().sort( "name" )
dump( extensions )
but
extensionList()
gives the same thing more simply.
✅ 1