Skip to content

Commit bb6b1ab

Browse files
committed
Added grex
1 parent 5ed7540 commit bb6b1ab

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

renovate.json

+17
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,18 @@
35913591
"version: \"?(?<currentValue>.*?)\"?\\n"
35923592
]
35933593
},
3594+
{
3595+
"customType": "regex",
3596+
"datasourceTemplate": "github-releases",
3597+
"depNameTemplate": "pemistahl/grex",
3598+
"extractVersionTemplate": "^v(?<version>.+)$",
3599+
"fileMatch": [
3600+
"^tools/grex/manifest.yaml$"
3601+
],
3602+
"matchStrings": [
3603+
"version: \"?(?<currentValue>.*?)\"?\\n"
3604+
]
3605+
},
35943606
{
35953607
"customType": "regex",
35963608
"datasourceTemplate": "github-releases",
@@ -11846,6 +11858,11 @@
1184611858
"^tools/graphviz/manifest.yaml$"
1184711859
]
1184811860
},
11861+
{
11862+
"matchFiles": [
11863+
"^tools/grex/manifest.yaml$"
11864+
]
11865+
},
1184911866
{
1185011867
"matchFiles": [
1185111868
"^tools/grizzly/manifest.yaml$"

tools/grex/Dockerfile.template

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#syntax=docker/dockerfile:1.14.0@sha256:0232be24407cc42c983b9b269b1534a3b98eea312aad9464dd0f1a9e547e15a7
2+
3+
FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare
4+
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
5+
/etc/profile.d/ \
6+
/etc/profile.d/
7+
SHELL [ "bash", "-clo", "errexit" ]
8+
ARG name
9+
ARG version
10+
RUN --mount=type=cache,target=/var/cache/uniget/download <<EOF
11+
url="https://github.com/pemistahl/grex/releases/download/v${version}/grex-v${version}-${arch}-unknown-linux-musl.tar.gz"
12+
filename="$( basename "${url}" )"
13+
14+
check-github-release-asset "pemistahl/grex" "v${version}" "${filename}"
15+
curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \
16+
"${url}"
17+
18+
tar --file="${uniget_cache_download}/${filename}" --list
19+
tar --file="${uniget_cache_download}/${filename}" --extract --gzip --directory="${prefix}/bin" --no-same-owner
20+
EOF
21+
22+
# completion
23+
#RUN <<EOF
24+
#"${prefix}/bin/foo" completion bash >"${prefix}/share/bash-completion/completions/foo"
25+
#"${prefix}/bin/foo" completion fish >"${prefix}/share/fish/vendor_completions.d/foo.fish"
26+
#"${prefix}/bin/foo" completion zsh >"${prefix}/share/zsh/vendor-completions/_foo"
27+
#EOF

tools/grex/manifest.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
2+
$schema: https://tools.uniget.dev/schema.yaml
3+
name: grex
4+
license:
5+
name: Apache License 2.0
6+
link: https://github.com/pemistahl/grex/blob/main/LICENSE
7+
version: "1.4.5"
8+
check: ${binary} --version | cut -d' ' -f2
9+
platforms:
10+
- linux/amd64
11+
- linux/arm64
12+
tags:
13+
- category/development
14+
- lang/rust
15+
- type/cli
16+
homepage: https://pemistahl.github.io/grex-js/
17+
repository: https://github.com/pemistahl/grex
18+
description: CLI and Rust library with Python bindings for generating regular expressions from user-provided test cases
19+
renovate:
20+
datasource: github-releases
21+
package: pemistahl/grex
22+
extractVersion: ^v(?<version>.+)$
23+
priority: low

0 commit comments

Comments
 (0)