CFLib endpoint

Description

Create an endpoint to help install packages from CFLib.org.

CommandBox> install cflib:ArrayAppendUnique

An example package (UDF) would be
http://www.cflib.org/udf/ArrayAppendUnique

And an example download link would be
http://www.cflib.org/udfdownload/ArrayAppendUnique

Considerations:

  • CFlib downloads are all a .cfm file with a cffunction inside of it

  • How do you make that easy to use after installation without extra work

  • Possibly a version of this endpoint could wrap the UDF in a module (for ColdBox apps) that either added it to the application helpers, or wrapped it in a model that could be injected.

Gliffy Diagrams

Activity

Show:

Brad Wood October 31, 2015 at 7:19 AM

It comes in two flavors.
​*Boring legacy app:*​

install cflib:foo

(Drops the UDF in a .cfm file and it's up to you to include it somewhere)

​*And spicy ColdBox module!*​

install cflib-coldbox:foo

That last one wraps it up as a module so you can install it in a Coldbox app and immediately inject it anywhere like so:

getInstance( "foo@cflib" ).foo()
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Components

Sentry

Created October 30, 2015 at 4:46 PM
Updated November 12, 2015 at 4:26 AM
Resolved October 31, 2015 at 7:19 AM