diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d8da52..19390ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,6 @@ jobs: build: runs-on: ubuntu-latest - env: - GOPRIVATE: github.com/e2engine/* - steps: - name: Checkout uses: actions/checkout@v7 @@ -22,12 +19,6 @@ jobs: with: go-version: stable - - name: Configure private modules - run: | - git config --global \ - url."https://x-access-token:${{ secrets.E2ENGINE_READ_TOKEN }}@github.com/".insteadOf \ - "https://github.com/" - - name: Verify run: make verify @@ -44,9 +35,6 @@ jobs: needs: build runs-on: ubuntu-latest - env: - GOPRIVATE: github.com/e2engine/* - steps: - name: Checkout CLI uses: actions/checkout@v7 @@ -56,12 +44,6 @@ jobs: with: go-version: stable - - name: Configure private modules - run: | - git config --global \ - url."https://x-access-token:${{ secrets.E2ENGINE_READ_TOKEN }}@github.com/".insteadOf \ - "https://github.com/" - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 @@ -69,9 +51,8 @@ jobs: uses: actions/checkout@v7 with: repository: e2engine/tests - ref: v0.0.3 + ref: stable path: e2engine-tests - token: ${{ secrets.E2ENGINE_READ_TOKEN }} - name: Run E2E tests run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 885ef5f..1e76907 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,6 @@ jobs: goreleaser: runs-on: ubuntu-latest - env: - GOPRIVATE: github.com/e2engine/* - steps: - uses: actions/checkout@v7 with: @@ -27,12 +24,6 @@ jobs: with: go-version: stable - - name: Configure private modules - run: | - git config --global \ - url."https://x-access-token:${{ secrets.E2ENGINE_READ_TOKEN }}@github.com/".insteadOf \ - "https://github.com/" - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 diff --git a/README.md b/README.md index 5148769..9fa8b48 100644 --- a/README.md +++ b/README.md @@ -4,33 +4,46 @@ Command-line interface for E2Engine. This module provides the E2Engine command-line application for creating, validating, listing, inspecting, deleting, and running E2Engine resources using local E2Engine services. -## Build +## Installation + +### macOS + +Install E2Engine using Homebrew: ```bash -make build-cli +brew install --cask e2engine/tap/e2engine ``` -## Packages +### Linux -**cmd/cli** +Download the appropriate .deb or .rpm package for your architecture from the [latest GitHub release](https://github.com/e2engine/cli/releases/latest). -E2Engine CLI entry point and Cobra command definitions. +Debian/Ubuntu: -**internal/command** +```bash +sudo apt install ./e2engine_*.deb +``` -Command handlers for E2Engine resources and operations. +Fedora/RHEL: -**internal/service** +```bash +sudo dnf install ./e2engine_*.rpm +``` -CLI service construction and integration with E2Engine Core and persistence implementations. +### Windows -**internal/output** +Install E2Engine using Scoop: -Output configuration and rendering used by CLI commands. +```powershell +scoop bucket add e2engine https://github.com/e2engine/scoop-bucket +scoop install e2engine +``` -**internal/runnerprocess** +## Build -Local runner process lifecycle and launching. +```bash +make build-cli +``` ## Development @@ -62,12 +75,12 @@ make verify This repository is part of E2Engine. -- core — core domain model, execution logic, and public APIs -- repository — persistence implementations -- runner-local — local test execution -- cli — command-line interface -- tests — end-to-end tests for E2Engine -- demo — executable demonstration system and E2Engine examples +- [core](https://github.com/e2engine/core) — core domain model, execution logic, and public APIs +- [repository](https://github.com/e2engine/repository) — persistence implementations +- [runner-local](https://github.com/e2engine/runner-local) — local test execution +- [cli](https://github.com/e2engine/cli) — command-line interface +- [tests](https://github.com/e2engine/tests) — end-to-end tests for E2Engine +- demo — executable demonstration system and E2Engine usage examples ## License diff --git a/go.mod b/go.mod index d751433..056473f 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/e2engine/cli go 1.27 require ( - github.com/e2engine/core v0.0.1 - github.com/e2engine/repository v0.0.1 - github.com/e2engine/runner-local v0.0.1 + github.com/e2engine/core v0.1.0 + github.com/e2engine/repository v0.1.0 + github.com/e2engine/runner-local v0.1.0 github.com/spf13/cobra v1.10.2 github.com/ygrebnov/config v0.4.3 github.com/ygrebnov/errorc v0.6.1 @@ -14,6 +14,7 @@ require ( github.com/ygrebnov/model v0.7.5 github.com/ygrebnov/render v0.0.1 go.uber.org/mock v0.6.0 + gopkg.in/yaml.v3 v3.0.1 ) require ( @@ -37,7 +38,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc // indirect google.golang.org/grpc v1.84.0 // indirect google.golang.org/protobuf v1.36.12 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect modernc.org/libc v1.77.1 // indirect modernc.org/mathutil v1.7.1 // indirect modernc.org/memory v1.12.1 // indirect diff --git a/go.sum b/go.sum index 22f629a..f985e45 100644 --- a/go.sum +++ b/go.sum @@ -6,12 +6,12 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dustin/go-humanize v1.1.0 h1:dbKTrvD0klcbBV/h4AWJdMuZogJACoMlvWIWZ5b2xWg= github.com/dustin/go-humanize v1.1.0/go.mod h1:hc1CvRkJMsgxqjmjMQF3QNRAZBwY8AXBAzKYoSX9sFI= -github.com/e2engine/core v0.0.1 h1:UFrlgzKTr/FUJd10XO2Lpi4Tk0wuB1Tldv6w3EDi8mA= -github.com/e2engine/core v0.0.1/go.mod h1:EDzClKKllCF5U/iv2Trk7MODOk2pfURXDAi8NiTvXeU= -github.com/e2engine/repository v0.0.1 h1:Mi/mvgHSmuTu1YECDYX9IsPZWvmFhjaVsqy7A0Lm02A= -github.com/e2engine/repository v0.0.1/go.mod h1:S3ynnOFvs/cAH3Amo4ojF3skkiwlT9kXRKfx6OFPWf4= -github.com/e2engine/runner-local v0.0.1 h1:4svjW0daDF6wIFxMmk83Y9NJ7d0A1VVERnJLlKZayEw= -github.com/e2engine/runner-local v0.0.1/go.mod h1:46FgoNw22MCL7xv6ZKXFP8JeEc32BniM0qqCbgTzXss= +github.com/e2engine/core v0.1.0 h1:gCnHAVbK0635C6w9N2rC0PLi9PWh0SJLQNDkKarxpBw= +github.com/e2engine/core v0.1.0/go.mod h1:EDzClKKllCF5U/iv2Trk7MODOk2pfURXDAi8NiTvXeU= +github.com/e2engine/repository v0.1.0 h1:t2/Y8jeJVUqxZNHPKpuv0pBjXhImpncSGmbhnD1cu3U= +github.com/e2engine/repository v0.1.0/go.mod h1:nb2/Q0s/56N551339ytLLLdm/fIU1UllFcJgONe/v/g= +github.com/e2engine/runner-local v0.1.0 h1:00EebnT+8mCgYMPjB1fu7kGdCS76TyWiOqyF8u8Y1+Q= +github.com/e2engine/runner-local v0.1.0/go.mod h1:HCm3ZQbHlMnmS/H/xFv28HMCCYpwWrrV943T8Jzu9Ac= github.com/golang-migrate/migrate/v4 v4.20.1 h1:2N/ToVTKrKl58ynBpgeVJ4In7VcLCjWTZtm4eP1LxhU= github.com/golang-migrate/migrate/v4 v4.20.1/go.mod h1:DDPgKVb4ovSWc4FwSPfV2Uz1160f4XBiTHTrAJtljmM= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=