File tree 14 files changed +152
-24
lines changed
14 files changed +152
-24
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : release-please
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ permissions :
10
+ contents : write
11
+ pull-requests : write
12
+
13
+ jobs :
14
+ release-please :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : googleapis/release-please-action@v4
18
+ with :
19
+ token : ${{ secrets.GH_PAT }}
20
+ release-type : go
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : goreleaser
3
+
4
+ on :
5
+ push :
6
+ tags :
7
+ - ' *'
8
+
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ pkggodev :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Update pkg.go.dev endpoint
22
+ run : curl "https://proxy.golang.org/github.com/germainlefebvre4/cvwonder/@v/${{ github.ref_name }}.info"
23
+
24
+ goreleaser :
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v4
29
+ with :
30
+ fetch-depth : 0
31
+
32
+ - name : Set up Go
33
+ uses : actions/setup-go@v5
34
+
35
+ - name : Run GoReleaser
36
+ uses : goreleaser/goreleaser-action@v6
37
+ with :
38
+ distribution : goreleaser
39
+ version : latest
40
+ args : release --clean
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GH_PAT }}
43
+
44
+ - name : Upload assets
45
+ uses : actions/upload-artifact@v4
46
+ with :
47
+ name : cvwonder
48
+ path : dist/*
Original file line number Diff line number Diff line change @@ -24,3 +24,5 @@ cv.html
24
24
25
25
# Documentation
26
26
.venv /
27
+
28
+ dist /
Original file line number Diff line number Diff line change
1
+ ---
2
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
3
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
4
+
5
+ version : 2
6
+
7
+ before :
8
+ hooks :
9
+ - go mod tidy
10
+
11
+ builds :
12
+ - env :
13
+ - CGO_ENABLED=0
14
+ goos :
15
+ - linux
16
+ - windows
17
+ - darwin
18
+ main : ./cmd/{{ .ProjectName }}/main.go
19
+
20
+ archives :
21
+ - format : tar.gz
22
+ name_template : >-
23
+ {{ .ProjectName }}_
24
+ {{- title .Os }}_
25
+ {{- if eq .Arch "amd64" }}x86_64
26
+ {{- else if eq .Arch "386" }}i386
27
+ {{- else }}{{ .Arch }}{{ end }}
28
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
29
+ format_overrides :
30
+ - goos : windows
31
+ format : zip
32
+
33
+ changelog :
34
+ sort : asc
35
+ filters :
36
+ exclude :
37
+ - " ^docs:"
38
+ - " ^test:"
39
+
40
+ release :
41
+ prerelease : auto
42
+
43
+ checksum :
44
+ name_template : ' checksums.txt'
Original file line number Diff line number Diff line change 6
6
7
7
## Getting started
8
8
9
- Install the binary using ` go get ` :
9
+ Download the latest release from the [ releases page ] ( https://github.com/germainlefebvre4/cvwonder/releases ) .
10
10
11
11
``` bash
12
- go get github.com/germainlefebvre/cvwonder
12
+ DISTRIBUTION=Linux
13
+ CPU_ARCH=x86_64
14
+ VERSION=$( curl -s " https://api.github.com/repos/germainlefebvre4/cvwonder/releases/latest" | jq -r ' .tag_name' )
15
+ curl -L -o cvwonder.tar.gz " https://github.com/germainlefebvre4/cvwonder/releases/download/${VERSION} /cvwonder_${DISTRIBUTION} _${CPU_ARCH} .tar.gz"
16
+ tar -xzf cvwonder.tar.gz
17
+ chmod +x cvwonder
18
+ sudo mv cvwonder /usr/local/bin/
13
19
```
14
20
15
21
Write your CV in a YAML file (i.e; ` cv.yml ` ):
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "cvwonder/internal/cvparser"
5
- "cvwonder/internal/cvrender"
6
- "cvwonder/internal/cvserve"
7
- "cvwonder/internal/model"
8
- "cvwonder/internal/utils"
9
- "cvwonder/internal/watcher"
10
4
"fmt"
11
5
"os"
12
6
7
+ "github.com/germainlefebvre4/cvwonder/internal/cvparser"
8
+ "github.com/germainlefebvre4/cvwonder/internal/cvrender"
9
+ "github.com/germainlefebvre4/cvwonder/internal/cvserve"
10
+ "github.com/germainlefebvre4/cvwonder/internal/model"
11
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
12
+ "github.com/germainlefebvre4/cvwonder/internal/watcher"
13
+
13
14
"github.com/sirupsen/logrus"
14
15
"github.com/spf13/cobra"
15
16
)
@@ -24,8 +25,8 @@ func main() {
24
25
var rootCmd = & cobra.Command {
25
26
PreRun : utils .ToggleDebug ,
26
27
Use : "cvwonder [COMMAND] [OPTIONS]" ,
27
- Short : "CVRender " ,
28
- Long : `CVRender - Launch CVRender CLI ` ,
28
+ Short : "CV Wonder " ,
29
+ Long : `CV Wonder - Generate your CV with Wonder! ` ,
29
30
}
30
31
31
32
var generateCmd = & cobra.Command {
Original file line number Diff line number Diff line change 1
- module cvwonder
1
+ module github.com/germainlefebvre4/ cvwonder
2
2
3
3
go 1.23.4
4
4
Original file line number Diff line number Diff line change 1
1
package cvparser
2
2
3
3
import (
4
- "cvwonder/internal/model"
5
- "cvwonder/internal/utils"
6
4
"os"
7
5
6
+ "github.com/germainlefebvre4/cvwonder/internal/model"
7
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
8
+
8
9
"github.com/sirupsen/logrus"
9
10
"gopkg.in/yaml.v2"
10
11
)
Original file line number Diff line number Diff line change 1
1
package render_html
2
2
3
3
import (
4
- "cvwonder/internal/model"
5
- utils "cvwonder/internal/utils"
6
4
"errors"
7
5
"os"
8
6
"path/filepath"
9
7
"strings"
10
8
"text/template"
11
9
10
+ "github.com/germainlefebvre4/cvwonder/internal/model"
11
+ utils "github.com/germainlefebvre4/cvwonder/internal/utils"
12
+
12
13
"github.com/sirupsen/logrus"
13
14
)
14
15
Original file line number Diff line number Diff line change 1
1
package cvrender
2
2
3
3
import (
4
- render_html "cvwonder/internal/cvrender/html"
5
- "cvwonder/internal/model"
6
- "cvwonder/internal/utils"
7
4
"path"
8
5
6
+ render_html "github.com/germainlefebvre4/cvwonder/internal/cvrender/html"
7
+ "github.com/germainlefebvre4/cvwonder/internal/model"
8
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
9
+
9
10
"github.com/sirupsen/logrus"
10
11
)
11
12
Original file line number Diff line number Diff line change 1
1
package cvserve
2
2
3
3
import (
4
- "cvwonder/internal/utils"
5
4
"fmt"
6
5
"os/exec"
7
6
"path"
8
7
"path/filepath"
9
8
"runtime"
10
9
10
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
11
+
11
12
"github.com/sirupsen/logrus"
12
13
)
13
14
Original file line number Diff line number Diff line change 1
1
package cvserve
2
2
3
3
import (
4
- "cvwonder/internal/utils"
5
4
"fmt"
6
5
"log"
7
6
"net/http"
8
7
"path"
9
8
"path/filepath"
10
9
10
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
11
+
11
12
"github.com/fsnotify/fsnotify"
12
13
"github.com/jaschaephraim/lrserver"
13
14
"github.com/sirupsen/logrus"
Original file line number Diff line number Diff line change 1
1
package model
2
2
3
3
import (
4
- "cvwonder/internal/utils"
5
4
"os"
6
5
"path/filepath"
7
6
"strings"
7
+
8
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
8
9
)
9
10
10
11
type InputFile struct {
Original file line number Diff line number Diff line change 1
1
package watcher
2
2
3
3
import (
4
- "cvwonder/internal/cvparser"
5
- "cvwonder/internal/cvrender"
6
- "cvwonder/internal/utils"
7
4
"fmt"
8
5
"log"
9
6
7
+ "github.com/germainlefebvre4/cvwonder/internal/cvparser"
8
+ "github.com/germainlefebvre4/cvwonder/internal/cvrender"
9
+ "github.com/germainlefebvre4/cvwonder/internal/utils"
10
+
10
11
"github.com/fsnotify/fsnotify"
11
12
"github.com/sirupsen/logrus"
12
13
)
You can’t perform that action at this time.
0 commit comments