29 lines
931 B
Text
29 lines
931 B
Text
|
|
# KCL Version configuration for upcloud provider tools
|
||
|
|
# Uses centralized schema definitions from provisioning.version
|
||
|
|
import provisioning.version as prv_schema
|
||
|
|
|
||
|
|
# UpCloud provider CLI tool configuration
|
||
|
|
_version = prv_schema.TaskservVersion {
|
||
|
|
name = "upctl"
|
||
|
|
version = prv_schema.Version {
|
||
|
|
current = "3.26.0"
|
||
|
|
source = "https://github.com/UpCloudLtd/upcloud-cli/releases"
|
||
|
|
tags = "https://github.com/UpCloudLtd/upcloud-cli/tags"
|
||
|
|
site = "https://upcloudltd.github.io/upcloud-cli"
|
||
|
|
# Can auto-update for CLI tools
|
||
|
|
check_latest = True
|
||
|
|
grace_period = 86400
|
||
|
|
}
|
||
|
|
dependencies = []
|
||
|
|
# Detection configuration to check if UpCloud CLI is installed
|
||
|
|
detector = {
|
||
|
|
method = "command"
|
||
|
|
command = "upctl version"
|
||
|
|
pattern = r"Version:\s+(?P<capture0>[\d.]+)"
|
||
|
|
capture = "capture0"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
# Output for dynamic version loading system
|
||
|
|
_version
|