Skip to content

Commit d03fa06

Browse files
authored
feat: Refactor cli and add file patterns (#18)
1 parent 27194a6 commit d03fa06

28 files changed

+938
-419
lines changed

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ SCRIPTS_DIR := ./scripts
66
APP_NAME := nobl9-language-server
77
VERSION_PKG := "$(shell go list -m)/internal/version"
88

9-
ifndef BRANCH
10-
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
11-
endif
12-
ifndef REVISION
13-
REVISION := $(shell git rev-parse --short=8 HEAD)
14-
endif
9+
VERSION ?= 1.0.0-test
10+
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
11+
REVISION ?= $(shell git rev-parse --short=8 HEAD)
1512

1613
LDFLAGS := -s -w \
1714
-X $(VERSION_PKG).BuildVersion=$(VERSION) \

README.md

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It defines the protocol used between an editor or IDE and a language server
1515
(this project) that provides language features like auto complete,
1616
diagnose file, display documentation etc.
1717

18-
## Install
18+
## Installation
1919

2020
The Language Server binary has to be installed in your PATH,
2121
so that the IDE can access it by calling `nobl9-language-server`
@@ -55,7 +55,7 @@ The binaries are available at
5555

5656
### Go install
5757

58-
```shell
58+
```bash
5959
go install github.com/nobl9/nobl9-language-server/cmd/nobl9-language-server@latest
6060
```
6161

@@ -72,7 +72,7 @@ Refer to the [plugin documentation](https://github.com/nobl9/nobl9-intellij-plat
7272
### Neovim
7373

7474
Minimal Neovim setup which assumes you've already configured
75-
snippets support and LSP configuration would look like this:
75+
snippets support and LSP would look like this:
7676

7777
```lua
7878
local lsp = require("lspconfig")
@@ -162,16 +162,55 @@ The Language Server comes with several configuration options.
162162
Each option can be supplied via a dedicated flag when starting the server.
163163

164164
```bash
165+
# Display help information.
166+
nobl9-language-server -h
167+
165168
# Log level, by default 'INFO'.
166169
# One of: TRACE, DEBUG, INFO, WARN, ERROR.
167-
nobl9-language-server -logLevel=TRACE
170+
# Env: NOBL9_LANGUAGE_SERVER_LOG_LEVEL
171+
nobl9-language-server --logLevel=TRACE
172+
168173
# Path to the server's log file.
169-
# By default it is written into 'nobl9-language-server.log'.
170-
nobl9-language-server -logFilePath=/path/to/my-log-file.txt
174+
# By default the logs are written into stderr.
175+
# Env: NOBL9_LANGUAGE_SERVER_LOG_FILE_PATH
176+
nobl9-language-server --logFilePath=/path/to/my-log-file.txt
177+
178+
# Configure file patterns, comma separated list of patterns.
179+
# Remember to quote them if they include glob patterns!
180+
# If this option is provided, the server will only work with the files matching these patterns.
181+
# Env: NOBL9_LANGUAGE_SERVER_FILE_PATTERNS
182+
nobl9-language-serve --filePatterns='foo,bar/*,baz/**/*.yml'
183+
171184
# Display version information.
172-
nobl9-language-server -version
185+
nobl9-language-server version
173186
```
174187

188+
### YAML
189+
190+
> [!IMPORTANT]
191+
By default, the language server will only offer its capabilities for files
192+
which contain the following text: `apiVersion: n9/`.
193+
194+
If you're working on an empty file, the server won't work
195+
until you write this text.
196+
Likewise, If your file had this text, but you removed it
197+
(maybe you cleared the whole file), the server will no longer work.
198+
199+
Internally, the server keeps track of **every** YAML file,
200+
even if it is skipped. In the current version of LSP, there's no way to tell
201+
the client we're skipping a file.
202+
If you experience overhead when working with many YAML files other than
203+
Nobl9 configuration, consider fine tuning your IDE to only send certain files
204+
to the server.
205+
206+
How can I force the server to work on a file which does not include this text?
207+
208+
- Add `# nobl9-language-server: activate` comment **to the top of your file**.
209+
- Configure file patterns with `--filePatterns` flag
210+
(see [configuration](#configuration)).
211+
212+
### Nobl9 API
213+
175214
In order for the server to work correctly,
176215
it requires valid Nobl9 API access keys.
177216
Under the hood the server uses [nobl9-go](https://github.com/nobl9/nobl9-go)

cmd/nobl9-language-server/main.go

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ package main
22

33
import (
44
"context"
5-
"flag"
6-
"fmt"
5+
"log"
76
"log/slog"
87
"os"
98
"os/signal"
109
"syscall"
1110

11+
"github.com/pkg/errors"
1212
"github.com/sourcegraph/jsonrpc2"
1313

14+
"github.com/nobl9/nobl9-language-server/internal/cli"
1415
"github.com/nobl9/nobl9-language-server/internal/connection"
1516
"github.com/nobl9/nobl9-language-server/internal/logging"
1617
"github.com/nobl9/nobl9-language-server/internal/recovery"
@@ -22,31 +23,24 @@ import (
2223
)
2324

2425
func main() {
25-
os.Exit(run())
26-
}
27-
28-
func run() int {
29-
config := parseFlags()
30-
31-
if len(flag.Args()) > 0 {
32-
fmt.Fprintln(os.Stderr, "Error: positional arguments are not allowed")
33-
os.Exit(1)
34-
}
35-
if config.ShowVersion {
36-
fmt.Println(version.GetUserAgent())
37-
return 0
26+
cmd := cli.New(run)
27+
if err := cmd.Run(); err != nil {
28+
slog.Error("server command returned error", slog.Any("error", err))
29+
log.Fatal(err)
3830
}
31+
}
3932

33+
func run(config *cli.Config) error {
4034
logCloser := logging.Setup(logging.Config{
41-
LogFile: config.LogFile,
35+
LogFile: config.LogFilePath,
4236
LogLevel: config.LogLevel,
4337
})
4438
defer func() { _ = logCloser.Close() }()
4539

46-
conn, err := bootstrap()
40+
conn, err := bootstrap(config)
4741
if err != nil {
4842
slog.Error("failed to create server", slog.Any("error", err))
49-
return 1
43+
return errors.Wrap(err, "failed to create server")
5044
}
5145
recovery.Setup(conn)
5246
defer func() { recovery.LogPanic(context.Background(), recover()) }()
@@ -61,34 +55,19 @@ func run() int {
6155
}
6256

6357
slog.Info("server shutdown")
64-
return 0
58+
return nil
6559
}
6660

67-
func bootstrap() (*jsonrpc2.Conn, error) {
61+
func bootstrap(config *cli.Config) (*jsonrpc2.Conn, error) {
6862
ctx := context.Background()
6963
span, _ := logging.StartSpan(ctx, "bootstrap")
7064
defer span.Finish()
7165

72-
srv, err := server.New(ctx, version.GetVersion())
66+
srv, err := server.New(ctx, version.GetVersion(), config.FilePatterns)
7367
if err != nil {
7468
return nil, err
7569
}
7670
stream := stdio.New(os.Stdin, os.Stdout)
7771
handler := mux.New(srv.GetHandlers()).Handle
7872
return connection.NewJSONRPC2(ctx, stream, handler), nil
7973
}
80-
81-
type configuration struct {
82-
LogFile string
83-
LogLevel logging.Level
84-
ShowVersion bool
85-
}
86-
87-
func parseFlags() configuration {
88-
var c configuration
89-
flag.BoolVar(&c.ShowVersion, "version", false, "Show version information")
90-
flag.StringVar(&c.LogFile, "logFilePath", "", "Log messages to the provided file")
91-
flag.TextVar(&c.LogLevel, "logLevel", logging.DefaultLevel(), "Log messages at the provided level")
92-
flag.Parse()
93-
return c
94-
}

go.mod

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,37 @@
11
module github.com/nobl9/nobl9-language-server
22

3-
go 1.23
3+
go 1.24
44

55
require (
6-
github.com/goccy/go-yaml v1.16.0
7-
github.com/nobl9/nobl9-go v0.96.0
6+
github.com/bmatcuk/doublestar/v4 v4.8.1
7+
github.com/goccy/go-yaml v1.17.1
8+
github.com/nobl9/nobl9-go v0.101.1
89
github.com/pkg/errors v0.9.1
910
github.com/sourcegraph/jsonrpc2 v0.2.0
1011
github.com/stretchr/testify v1.10.0
12+
github.com/urfave/cli/v2 v2.27.6
1113
)
1214

1315
require (
14-
github.com/BurntSushi/toml v1.4.0 // indirect
15-
github.com/MicahParks/jwkset v0.8.0 // indirect
16-
github.com/MicahParks/keyfunc/v3 v3.3.10 // indirect
17-
github.com/aws/aws-sdk-go v1.55.6 // indirect
18-
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
16+
github.com/BurntSushi/toml v1.5.0 // indirect
17+
github.com/MicahParks/jwkset v0.9.5 // indirect
18+
github.com/MicahParks/keyfunc/v3 v3.3.11 // indirect
19+
github.com/aws/aws-sdk-go v1.55.7 // indirect
20+
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
1921
github.com/davecgh/go-spew v1.1.1 // indirect
20-
github.com/fatih/color v1.18.0 // indirect
2122
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
2223
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
2324
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
2425
github.com/jmespath/go-jmespath v0.4.0 // indirect
25-
github.com/mattn/go-colorable v0.1.14 // indirect
26-
github.com/mattn/go-isatty v0.0.20 // indirect
27-
github.com/nobl9/go-yaml v1.0.1 // indirect
28-
github.com/nobl9/govy v0.12.1 // indirect
26+
github.com/nobl9/govy v0.16.0 // indirect
2927
github.com/pmezard/go-difflib v1.0.0 // indirect
28+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
3029
github.com/teambition/rrule-go v1.8.2 // indirect
31-
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect
32-
golang.org/x/mod v0.22.0 // indirect
33-
golang.org/x/sync v0.11.0 // indirect
34-
golang.org/x/sys v0.29.0 // indirect
35-
golang.org/x/text v0.22.0 // indirect
36-
golang.org/x/time v0.10.0 // indirect
37-
golang.org/x/tools v0.29.0 // indirect
38-
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
30+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
31+
golang.org/x/mod v0.24.0 // indirect
32+
golang.org/x/sync v0.13.0 // indirect
33+
golang.org/x/text v0.24.0 // indirect
34+
golang.org/x/time v0.11.0 // indirect
35+
golang.org/x/tools v0.32.0 // indirect
3936
gopkg.in/yaml.v3 v3.0.1 // indirect
4037
)

go.sum

Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
2-
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
3-
github.com/MicahParks/jwkset v0.8.0 h1:jHtclI38Gibmu17XMI6+6/UB59srp58pQVxePHRK5o8=
4-
github.com/MicahParks/jwkset v0.8.0/go.mod h1:fVrj6TmG1aKlJEeceAz7JsXGTXEn72zP1px3us53JrA=
5-
github.com/MicahParks/keyfunc/v3 v3.3.10 h1:JtEGE8OcNeI297AMrR4gVXivV8fyAawFUMkbwNreJRk=
6-
github.com/MicahParks/keyfunc/v3 v3.3.10/go.mod h1:1TEt+Q3FO7Yz2zWeYO//fMxZMOiar808NqjWQQpBPtU=
7-
github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk=
8-
github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
1+
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
2+
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
3+
github.com/MicahParks/jwkset v0.9.5 h1:/baA2n7RhO7nRIe1rx4ZX1Opeq+mwDuuWi2myDZwqnA=
4+
github.com/MicahParks/jwkset v0.9.5/go.mod h1:U2oRhRaLgDCLjtpGL2GseNKGmZtLs/3O7p+OZaL5vo0=
5+
github.com/MicahParks/keyfunc/v3 v3.3.11 h1:eA6wNltwdSRX2gtpTwZseBCC9nGeBkI9KxHtTyZbDbo=
6+
github.com/MicahParks/keyfunc/v3 v3.3.11/go.mod h1:y6Ed3dMgNKTcpxbaQHD8mmrYDUZWJAxteddA6OQj+ag=
7+
github.com/aws/aws-sdk-go v1.55.7 h1:UJrkFq7es5CShfBwlWAC8DA077vp8PyVbQd3lqLiztE=
8+
github.com/aws/aws-sdk-go v1.55.7/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
99
github.com/bmatcuk/doublestar/v4 v4.8.1 h1:54Bopc5c2cAvhLRAzqOGCYHYyhcDHsFF4wWIR5wKP38=
1010
github.com/bmatcuk/doublestar/v4 v4.8.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
11+
github.com/cpuguy83/go-md2man/v2 v2.0.7 h1:zbFlGlXEAKlwXpmvle3d8Oe3YnkKIK4xSRTd3sHPnBo=
12+
github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
1113
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1214
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1315
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1416
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
1517
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
16-
github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=
17-
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
18-
github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
19-
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
20-
github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE=
21-
github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4=
22-
github.com/goccy/go-yaml v1.16.0 h1:d7m1G7A0t+logajVtklHfDYJs2Et9g3gHwdBNNFou0w=
23-
github.com/goccy/go-yaml v1.16.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
18+
github.com/goccy/go-yaml v1.17.1 h1:LI34wktB2xEE3ONG/2Ar54+/HJVBriAGJ55PHls4YuY=
19+
github.com/goccy/go-yaml v1.17.1/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
2420
github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8=
2521
github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
2622
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
@@ -37,48 +33,43 @@ github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9Y
3733
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
3834
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
3935
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
40-
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
41-
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
4236
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
4337
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
4438
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
4539
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
46-
github.com/nobl9/go-yaml v1.0.1 h1:Aj1kSaYdRQTKlvS6ihvXzQJhCpoHhtf9nfA95zqWH4Q=
47-
github.com/nobl9/go-yaml v1.0.1/go.mod h1:t7vCO8ctYdBweZxU5lUgxzAw31+ZcqJYeqRtrv+5RHI=
48-
github.com/nobl9/govy v0.12.1 h1:xMPPPyOFExaHYN75aEsiEuOXC2z8i44MLTqccjiEkAg=
49-
github.com/nobl9/govy v0.12.1/go.mod h1:O+xSiKwZ6gs/orRvH5qLkfkgyT7CkuXprRIq3C5uNXQ=
50-
github.com/nobl9/nobl9-go v0.96.0 h1:wp+FlC+yOmYrxdMKCv7KvzgWcvOza2weUp9o4wRqhN8=
51-
github.com/nobl9/nobl9-go v0.96.0/go.mod h1:nqsFOlLxjJW2wTTLcx9La9BFhVSpmHBvvYItfdbOx70=
40+
github.com/nobl9/govy v0.16.0 h1:VjMrkdFMt6CXGaqe6O8QZS7LhcntR5NAd0fG7WcAXSw=
41+
github.com/nobl9/govy v0.16.0/go.mod h1:yvhzfuWWVUJf7Txt1kMtwd6UsNTZqZZKJ8YyC3DYleE=
42+
github.com/nobl9/nobl9-go v0.101.1 h1:b6m48R3LSOhP+gQNlRhnldrs6LC/LZlGTzsmN07PxGc=
43+
github.com/nobl9/nobl9-go v0.101.1/go.mod h1:7DYLEwAGdzyAdcodeX8Clf8Ax6nJLqq06FNQVbt+Cw4=
5244
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
5345
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
5446
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5547
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
48+
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
49+
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
5650
github.com/sourcegraph/jsonrpc2 v0.2.0 h1:KjN/dC4fP6aN9030MZCJs9WQbTOjWHhrtKVpzzSrr/U=
5751
github.com/sourcegraph/jsonrpc2 v0.2.0/go.mod h1:ZafdZgk/axhT1cvZAPOhw+95nz2I/Ra5qMlU4gTRwIo=
5852
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
5953
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
6054
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
6155
github.com/teambition/rrule-go v1.8.2 h1:lIjpjvWTj9fFUZCmuoVDrKVOtdiyzbzc93qTmRVe/J8=
6256
github.com/teambition/rrule-go v1.8.2/go.mod h1:Ieq5AbrKGciP1V//Wq8ktsTXwSwJHDD5mD/wLBGl3p4=
63-
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
64-
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
65-
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0kKxwaAIqN/il7x4voA=
66-
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU=
67-
golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
68-
golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
69-
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
70-
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
71-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
72-
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
73-
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
74-
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
75-
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
76-
golang.org/x/time v0.10.0 h1:3usCWA8tQn0L8+hFJQNgzpWbd89begxN66o1Ojdn5L4=
77-
golang.org/x/time v0.10.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
78-
golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE=
79-
golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588=
80-
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY=
81-
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90=
57+
github.com/urfave/cli/v2 v2.27.6 h1:VdRdS98FNhKZ8/Az8B7MTyGQmpIr36O1EHybx/LaZ4g=
58+
github.com/urfave/cli/v2 v2.27.6/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
59+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
60+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
61+
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
62+
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
63+
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
64+
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
65+
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
66+
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
67+
golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
68+
golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
69+
golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0=
70+
golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
71+
golang.org/x/tools v0.32.0 h1:Q7N1vhpkQv7ybVzLFtTjvQya2ewbwNDZzUgfXGqtMWU=
72+
golang.org/x/tools v0.32.0/go.mod h1:ZxrU41P/wAbZD8EDa6dDCa6XfpkhJ7HFMjHJXfBDu8s=
8273
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
8374
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
8475
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=

0 commit comments

Comments
 (0)