From 89364be5474d67cdab5c88a8e94638d3b5f8746f Mon Sep 17 00:00:00 2001 From: Alexandre Gaigalas Date: Sat, 6 Jul 2024 17:18:44 -0300 Subject: [PATCH] Rename entrypoint.sh to coral Makes it look cooler. Also, makes more sense as an executable, since it behaves like one (e.g can be run from outside the dir). --- .github/workflows/build.yml | 2 +- Makefile | 2 +- README.md | 4 ++-- entrypoint.sh => coral | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename entrypoint.sh => coral (96%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fff0e75..8e48db9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: ./entrypoint.sh tap + - run: ./coral tap - run: make docker-matrix diff --git a/Makefile b/Makefile index de2cb39..708c796 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ docker-matrix: -v $(PWD):/opt/coral \ -w /opt/coral \ $(IMAGE) \ - sh test/matrix -c "./entrypoint.sh tap 'test/*/*'" + sh test/matrix -c "./coral tap 'test/*/*'" diff --git a/README.md b/README.md index c4c6da4..5aefc28 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,13 @@ There is no compilation or build step. Once you download it, you're good to go. Run all tests locally against the default shell: ```sh -./entrypoint.sh tap +./coral tap ``` Run a single test. For example, the pseudoarray implementation: ```sh -sh entrypoint.sh tap 'test/_idiom/005-Arr.sh' +sh coral tap 'test/_idiom/005-Arr.sh' ``` Run all tests inside an ephemeral docker container against all shells: diff --git a/entrypoint.sh b/coral similarity index 96% rename from entrypoint.sh rename to coral index a4d5255..040954c 100755 --- a/entrypoint.sh +++ b/coral @@ -1,3 +1,4 @@ +#!/usr/bin/env sh # Copyright (c) Alexandre Gomes Gaigalas # SPDX-License-Identifier: ISC @@ -11,4 +12,3 @@ __LIB__="${__SLF__%\/*}" . "${__LIB__}/idiom/data.sh" # Pseudo-datastructures. . "${__LIB__}/idiom/require.sh" # Module loader. . "${__LIB__}/idiom/wrapper.sh" # Actually runs the thing. -