Rename cmd/triplex-example to cmd/triplex
All checks were successful
CI / test (push) Successful in 16s

This commit is contained in:
2026-03-02 23:31:05 +01:00
parent 3fc26e0743
commit 5b68e79c0d
3 changed files with 7 additions and 7 deletions

View File

@@ -33,11 +33,11 @@ jobs:
run: go test -v ./...
- name: Build
run: go build -o ./bin/triplex-example ./cmd/triplex-example
run: go build -o ./bin/triplex ./cmd/triplex
- name: Run example
run: |
if ./bin/triplex-example && ./bin/triplex-example --complete ABC-123-DE; then
if ./bin/triplex && ./bin/triplex --complete ABC-123-DE; then
echo "Example ran successfully"
else
echo "Example failed"

View File

@@ -1,16 +1,16 @@
# Copyright (c) 2026 Micha Hoiting
APP_EXAMPLE := triplex-example
APP_EXAMPLE := triplex
.PHONY: test build-example run-example fmt
.PHONY: test build-triplex run-triplex fmt
test:
go test ./...
build-example:
build-triplex:
go build -o bin/$(APP_EXAMPLE) ./cmd/$(APP_EXAMPLE)
run-example:
run-triplex:
go run ./cmd/$(APP_EXAMPLE)
fmt:

View File

@@ -31,7 +31,7 @@ func myRandomIndex(max uint) (uint, error) {
}
func main() {
complete := flag.String("complete", "", "complete code without checksum in format LLL-NNN-L")
complete := flag.String("complete", "", "complete code without checksum in format LLL-NNN-LL")
flag.Parse()
if *complete != "" {