File tree Expand file tree Collapse file tree 8 files changed +24
-5
lines changed Expand file tree Collapse file tree 8 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 26
26
version : " v2"
27
27
args : release --clean
28
28
env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 25
25
- uses : actions/checkout@v4
26
26
- name : test
27
27
run : make test
28
- - uses : k1LoW/octocov-action@v1
28
+ - uses : k1LoW/octocov-action@v1
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ issues:
32
32
- path : _test\.go
33
33
linters :
34
34
- errcheck
35
- - forcetypeassert
35
+ - forcetypeassert
Original file line number Diff line number Diff line change 1
1
builds :
2
+ # patchr:replace - main: ./cmd/{{ input "name" }}
2
3
- main : ./cmd/go-cli-template
4
+ # patchr:replace binary: {{ input "name" }}
3
5
binary : go-cli-template
4
6
goos :
5
7
- windows
@@ -27,4 +29,5 @@ changelog:
27
29
release :
28
30
github :
29
31
owner : wreulicke
30
- name : go-cli-template
32
+ # patchr:replace name: {{ input "name" }}
33
+ name : go-cli-template
Original file line number Diff line number Diff line change 20
20
report :
21
21
if : is_default_branch
22
22
datastores :
23
- - artifact://${GITHUB_REPOSITORY}
23
+ - artifact://${GITHUB_REPOSITORY}
Original file line number Diff line number Diff line change
1
+ <!-- patchr:template-start -->
2
+ <!-- # {{ input "name" }} -->
3
+ <!-- patchr:template-end -->
4
+ <!-- patchr:remove -->
1
5
# go-cli-template
2
6
3
7
This is my repository template for cli tool in go.
@@ -9,6 +13,7 @@ This is my repository template for cli tool in go.
9
13
10
14
## Usage
11
15
16
+ <!-- patchr:cut-start -->
12
17
``` bash
13
18
go-cli-template
14
19
26
31
27
32
Use " go-cli-template [command] --help" for more information about a command.
28
33
```
34
+ <!-- patchr:cut-end -->
29
35
30
36
## License
31
37
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
+ // patchr:cut-start
4
+ //go:generate go run github.com/wreulicke/patchr/cmd/patchr@v0.0.4 ../../
5
+ // patchr:cut-end
3
6
import (
4
7
"debug/buildinfo"
5
8
"fmt"
@@ -22,8 +25,14 @@ func main() {
22
25
23
26
func NewApp () * cobra.Command {
24
27
c := cobra.Command {
28
+ // patchr:template-start
29
+ // Use: "{{ input "name" }}",
30
+ // Short: "{{ input "name" }}",
31
+ // patchr:template-end
32
+ // patchr:cut-start
25
33
Use : "go-cli-template" ,
26
34
Short : "go-cli-template" ,
35
+ // patchr:cut-end
27
36
RunE : func (cmd * cobra.Command , args []string ) error {
28
37
// nop
29
38
return nil
Original file line number Diff line number Diff line change
1
+ // patchr:replace module github.com/wreulicke/{{ input "repo" }}
1
2
module github.com/wreulicke/go-cli-template
2
3
3
4
go 1.22
You can’t perform that action at this time.
0 commit comments