Skip to content

Commit 110fb7c

Browse files
committed
save changes
1 parent 08085fc commit 110fb7c

4 files changed

Lines changed: 115 additions & 0 deletions

File tree

.github/workflows/release2.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
# Currently disaabled
4+
on:
5+
push:
6+
tags:
7+
- wv*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: actions/setup-go@v5
21+
with:
22+
go-version: "1.22"
23+
24+
- uses: goreleaser/goreleaser-action@v5
25+
with:
26+
version: latest
27+
args: release --clean
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
project_name: finder
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
builds:
8+
- id: finder
9+
main: ./cmd/finder
10+
binary: finder
11+
env:
12+
- CGO_ENABLED=0
13+
goos:
14+
- linux
15+
- darwin
16+
- windows
17+
goarch:
18+
- amd64
19+
- arm64
20+
ldflags:
21+
- -s -w
22+
- -X finderversion.Version={{ .Version }}
23+
- -X finderversion.BuildTime={{ .Date }}
24+
25+
archives:
26+
- id: default
27+
builds:
28+
- finder
29+
name_template: >-
30+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
31+
format_overrides:
32+
- goos: windows
33+
format: zip
34+
files:
35+
- LICENSE
36+
- CHANGELOG.md
37+
- INFO.txt
38+
39+
checksum:
40+
name_template: "SHA256SUMS"
41+
42+
release:
43+
github:
44+
owner: shadowdara
45+
name: finder
46+
draft: false
47+
prerelease: auto
48+
49+
brews:
50+
- name: finder
51+
homepage: https://github.com/yourname/finder
52+
description: Fast file finder CLI
53+
license: MIT
54+
tap:
55+
owner: shadowdara
56+
name: homebrew-finder
57+
commit_author:
58+
name: shadowdara
59+
email: shadowdara74@gmail.com
60+
61+
scoops:
62+
- name: finder
63+
homepage: https://github.com/yourname/finder
64+
description: Fast file finder CLI
65+
license: MIT
66+
bucket:
67+
owner: shadowdara
68+
name: scoop-bucket

internal/history/history.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package history
2+
3+
// Function to Write the History to a File
4+
func historyWriter(history []string, newentry string) {}
5+
6+
// Function to append a new Line to the History
7+
func AppendHistory(line string) {
8+
history := ReadHistory()
9+
historyWriter(history, line)
10+
}
11+
12+
// Function to read the History
13+
func ReadHistory() []string {
14+
var content []string
15+
16+
return content
17+
}

internal/search/search.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func Find(folderstruct structure.Folder, output_type string) {
9898
elapsed := time.Since(start).Seconds()
9999
if output_type != "clear" {
100100
fmt.Printf("Search by finder took: %.4f seconds\n", elapsed)
101+
fmt.Printf("Found: %.1 Results\n", len(matches))
101102
}
102103

103104
switch output_type {

0 commit comments

Comments
 (0)