latestText versionPicker #17

Closed
opened 2024-09-23 16:45:11 +02:00 by belka · 0 comments
Owner

latestText downloads a page and looks for latest version information on this page. To filter the versions on the page it uses a function. This function cannot be transformed to configuration because it is Haskell code. So the API should be made more configuration friendly here.

The solution could be a command that accepts the page contents on stdin and outputs the version if it can find one. The big advantage of a command compared to a regex is that an extern command can handle any format like json, xml and so on.

One thing to decide whether the output of the command is the selected version or it can output multiple versions, that can be filtered in the next step with a version expression, same as git tags.

`latestText` downloads a page and looks for latest version information on this page. To filter the versions on the page it uses a function. This function cannot be transformed to configuration because it is Haskell code. So the API should be made more configuration friendly here. The solution could be a command that accepts the page contents on stdin and outputs the version if it can find one. The big advantage of a command compared to a regex is that an extern command can handle any format like json, xml and so on. One thing to decide whether the output of the command is the selected version or it can output multiple versions, that can be filtered in the next step with a version expression, same as git tags.
belka added the
Kind
enhancement
label 2024-09-23 16:45:11 +02:00
belka added the
Status
fixed
label 2024-09-28 15:44:12 +02:00
belka closed this issue 2024-09-28 15:44:14 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: OSS/slackbuilder#17
No description provided.