Skip to content

Commit 0d53bc5

Browse files
committed
Replaced Mage with Task
1 parent 66ecf46 commit 0d53bc5

File tree

5 files changed

+20
-36
lines changed

5 files changed

+20
-36
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ A simple notaking wrapper for plain text notes!
99

1010
Install
1111
```
12-
mage install
12+
task install
1313
```
1414

1515
Build
1616
```
17-
mage build
17+
task build
1818
```
1919

2020
Developer Build (Creates separate config under ~/.config/notr-dev)
2121
```
22-
mage dev
22+
task dev
2323
```

go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/officialkris/notr
22

33
go 1.21.1
4-
5-
require github.com/magefile/mage v1.15.0

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=
2-
github.com/magefile/mage v1.15.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=

magefile.go

-29
This file was deleted.

taskfile.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3'
2+
3+
tasks:
4+
dev:
5+
cmds:
6+
- go build -trimpath -ldflags="-s -w" -tags dev
7+
- ./notr
8+
# silent: true
9+
build:
10+
cmds:
11+
- go mod download
12+
- go build -trimpath -ldflags="-s -w"
13+
install:
14+
cmds:
15+
- go install -ldflags="-s -w" ./... -tags prod
16+
clean: rem notr
17+
# TODO: Make sure REM directory is clean and future set to OS trash

0 commit comments

Comments
 (0)