Naming convention and CI
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
Signed-off-by: jolheiser <john.olheiser@gmail.com>main v0.0.2
parent
f74ad12958
commit
7afb62338a
|
@ -0,0 +1,6 @@
|
|||
pipeline:
|
||||
compliance:
|
||||
image: golang:1.18
|
||||
commands:
|
||||
- go test -race ./...
|
||||
- go vet ./...
|
|
@ -7,6 +7,8 @@ A JSON schema and loader for [chroma](https://github.com/alecthomas/chroma).
|
|||
|
||||
[schema.json](schema/schema.json) provides a [JSON schema](https://json-schema.org).
|
||||
|
||||
Chroma themes are conventionally named `<theme>.chroma.json`.
|
||||
|
||||
## Styles
|
||||
|
||||
There is a valid [catppuccin](https://github.com/catppuccin) style in [catppuccin.json](schema/testdata/catppuccin.json).
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
func main() {
|
||||
fs := flag.NewFlagSet("chromajson", flag.ExitOnError)
|
||||
styleFlag := fs.String("style", ".style.json", "Chroma JSON style config")
|
||||
styleFlag := fs.String("style", ".chroma.json", "Chroma JSON style config")
|
||||
lintFlag := fs.Bool("lint", false, "Lint config and exit")
|
||||
if err := fs.Parse(os.Args[1:]); err != nil {
|
||||
fmt.Println(err)
|
||||
|
|
|
@ -25,7 +25,7 @@ func TestLint(t *testing.T) {
|
|||
t.Run(tc.Name, func(t *testing.T) {
|
||||
assert := is.New(t)
|
||||
|
||||
fi, err := testdata.Open(fmt.Sprintf("testdata/%s.json", tc.Name))
|
||||
fi, err := testdata.Open(fmt.Sprintf("testdata/%s.chroma.json", tc.Name))
|
||||
assert.NoErr(err) // Should open file
|
||||
defer fi.Close()
|
||||
|
||||
|
|
Reference in New Issue