Skip to content

Commit 1257b0b

Browse files
Merge branch 'main' of https://github.com/RohitRavindra-dev/devlocal into feat/v1/status
2 parents 4463d8e + d65b1f3 commit 1257b0b

7 files changed

Lines changed: 145 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
permissions:
11+
contents: read
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
20+
21+
- name: Setup Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: go.mod
25+
26+
- name: Build DevLocal
27+
run: go build .

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: false
21+
22+
- name: Setup Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: go.mod
26+
27+
- name: Run GoReleaser
28+
uses: goreleaser/goreleaser-action@v6
29+
with:
30+
distribution: goreleaser
31+
version: "~> v2"
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: 2
2+
3+
project_name: devlocal
4+
5+
before:
6+
hooks:
7+
- go mod tidy
8+
9+
builds:
10+
- id: devlocal
11+
binary: devlocal
12+
main: .
13+
env:
14+
- CGO_ENABLED=0
15+
16+
goos:
17+
- windows
18+
- linux
19+
- darwin
20+
21+
goarch:
22+
- amd64
23+
- arm64
24+
25+
ldflags:
26+
- >-
27+
-s -w
28+
-X github.com/RohitRavindra-dev/devlocal/internal/config.Version={{ .Version }}
29+
-X github.com/RohitRavindra-dev/devlocal/internal/config.Commit={{ .Commit }}
30+
-X github.com/RohitRavindra-dev/devlocal/internal/config.Date={{ .Date }}
31+
32+
archives:
33+
- formats: [zip]
34+
name_template: >-
35+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
36+
37+
checksum:
38+
name_template: checksums.txt
39+
40+
release:
41+
draft: false
42+
prerelease: auto

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# CHANGELOG
2+
All notable changes to this project will be documented in this file.
3+
4+
## [0.1.0] - Initial Release
5+
### Added
6+
- `devlocal init` command to initialize configuration
7+
- `devlocal apply` command to apply overlook rules
8+
- `devlocal revert` command to remove overlook rules
9+
- `devlocal cleanup` command to clean up Git state
10+
- `devlocal status` command to inspect current state
11+
- YAML-based configuration (`devlocal.yaml`)
12+
- Support for Git `skip-worktree` to ignore local changes Basic CLI interface for managing overlooked files
13+
14+
15+
### Notes
16+
- First usable version of DevLocal
17+
- Focused on preventing accidental commits of local-only changes
18+
- Designed to be simple, Git-native, and workflow-friendly

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Rohit Ravindra
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var versionCmd = &cobra.Command{
1111
Use: "version",
1212
Short: "Print version information",
1313
Run: func(cmd *cobra.Command, args []string) {
14-
fmt.Println("devlocal", config.Version)
14+
fmt.Println("[devlocal]", config.Version, config.Commit)
1515
},
1616
}
1717

internal/config/constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ const (
99

1010
var (
1111
Version = "dev"
12+
Commit = "none"
13+
Date = "unknown"
1214
)

0 commit comments

Comments
 (0)