Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Adding rules

Patrick G edited this page Apr 17, 2018 · 6 revisions

The rules are stored in jiup/rules/rules.go.

The general format of a rule is:

Rule(pkgName string,
    v VersionExtractorFunc,
    d DownloadExtractorFunc,
)

To test your rule, run the following command: go run jiup/rules/reachability-test/main.go -l the-name-of-the-package. Make sure the download link and version shown are correct. Do not submit your rule until you have tested it, as the updater will automatically run.

The rest of the docs are coming soon. For now, look in the rules file for examples.

Clone this wiki locally