Skip to content

Commit 074c109

Browse files
committed
fix: go install command
1 parent 6a98f2e commit 074c109

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+105
-878
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ jobs:
1818
with:
1919
go-version: ${{ env.GO_VERSION }}
2020
- name: Build
21-
working-directory: apps/cli
2221
run: go build -v ./...
2322
- name: Test
24-
working-directory: apps/cli
2523
run: go test -v -race ./...
2624

2725
release:

.goreleaser.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ version: 2
44

55
before:
66
hooks:
7-
- go mod tidy -C apps/cli
7+
- go mod tidy
88

99
builds:
10-
- dir: apps/cli
11-
env:
10+
- env:
1211
- CGO_ENABLED=0
1312
goos:
1413
- linux
1514
goarch:
1615
- amd64
17-
main: ./cmd/cdns/main.go
16+
main: ./main.go
1817
binary: cdns
1918
ldflags:
2019
- -s -w -X main.buildVersion={{.Version}} -X main.buildCommit={{.Commit}} -X main.buildDate={{.Date}} -X main.buildBy=goreleaser

AGENTS.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@ Before writing code for complex tasks, you MUST start with a `task_plan.md`.
77

88
## 📜 Project Overview
99

10-
**CDNS** is a monorepo containing a Go CLI tool and its documentation.
10+
**CDNS** is a Go-based CLI tool (Cobra + Bubble Tea) for managing DNS settings on Linux.
1111

12-
- **Root**: Workspace config and governance.
13-
- **apps/cli**: Go-based CLI application (Cobra + Bubble Tea).
14-
- **apps/documentation**: Docusaurus-based documentation site.
12+
- **Root**: Application source code, configuration, and governance.
13+
- **internal/**: Core logic (DNS backends, models, features).
14+
- **main.go**: Application entry point.
1515

1616
## ⚡ Task Execution Rules
1717

18-
1. **Scope**: Modify only what is requested. Isolate changes to the specific app (`cli` or `documentation`) unless it's a cross-cutting concern.
18+
1. **Scope**: Modify only what is requested.
1919
2. **Verification**: Always verify changes.
20-
- CLI: `mise run cli:test`
21-
- Docs: `mise run docs:build`
20+
- Run: `mise test`
2221
3. **Naming**: The project is named **CDNS**. Avoid "avtoolz" or "go-cli".
2322

2423
## 🛠️ Development Environment
2524

2625
- **Task Runner**: `mise` handles all dev tasks.
27-
- **Linting**: `golangci-lint` (via `mise run cli:lint`).
26+
- **Linting**: `golangci-lint` (via `mise lint`).
2827
- **Formatting**: Standard `gofmt`.
2928

3029
## 📝 Documentation Policy

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ curl -sfL https://raw.githubusercontent.com/junevm/cdns/main/install.sh | sh
6060
If you have Go installed:
6161

6262
```bash
63-
go install github.com/junevm/cdns/apps/cli/cmd/cdns@latest
63+
go install github.com/junevm/cdns@latest
6464
```
6565

6666
### Option 3: Homebrew (Linux)

apps/cli/.gitignore

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)