Skip to content

Commit 0f4b44c

Browse files
committed
Add tests (#7)
* add tests * update dependencies
1 parent f48990e commit 0f4b44c

File tree

10 files changed

+1779
-297
lines changed

10 files changed

+1779
-297
lines changed

.goreleaser.yaml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
111
before:
212
hooks:
13+
# You may remove this if you don't use go modules.
314
- go mod tidy
15+
# you may remove this if you don't need go generate
416
- go generate ./...
17+
518
builds:
619
- env:
720
- CGO_ENABLED=0
821
goos:
922
- linux
1023
- windows
1124
- darwin
12-
ldflags:
13-
- -X 'github.com/JamesChung/cprl/cmd.Version={{ .Version }}'
25+
1426
archives:
15-
- format: tar.gz
27+
- formats: [tar.gz]
28+
# this name template makes the OS and Arch compatible with the results of `uname`.
1629
name_template: >-
1730
{{ .ProjectName }}_
1831
{{- title .Os }}_
@@ -22,28 +35,19 @@ archives:
2235
{{- if .Arm }}v{{ .Arm }}{{ end }}
2336
# use zip for windows archives
2437
format_overrides:
25-
- goos: windows
26-
format: zip
27-
checksum:
28-
name_template: 'checksums.txt'
29-
snapshot:
30-
name_template: "{{ incpatch .Version }}-next"
38+
- goos: windows
39+
formats: [zip]
40+
3141
changelog:
3242
sort: asc
3343
filters:
3444
exclude:
35-
- '^docs:'
36-
- '^test:'
37-
38-
brews:
39-
- tap:
40-
owner: JamesChung
41-
name: homebrew-tap
42-
folder: Formula
43-
homepage: https://github.com/JamesChung/cprl
44-
description: Multipurpose command line tool for AWS to make development life easier
45-
license: MIT
46-
47-
# The lines beneath this are called `modelines`. See `:help modeline`
48-
# Feel free to remove those if you don't want/use them.
49-
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
45+
- "^docs:"
46+
- "^test:"
47+
48+
release:
49+
footer: >-
50+
51+
---
52+
53+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).

go.mod

Lines changed: 66 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,95 @@
11
module github.com/JamesChung/cprl
22

3-
go 1.22.0
4-
5-
toolchain go1.22.3
3+
go 1.25
64

75
require (
8-
github.com/aws/aws-sdk-go-v2 v1.26.1
9-
github.com/aws/aws-sdk-go-v2/config v1.27.12
10-
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.35.2
11-
github.com/aws/aws-sdk-go-v2/service/codecommit v1.22.5
12-
github.com/aws/aws-sdk-go-v2/service/iam v1.32.1
13-
github.com/aws/aws-sdk-go-v2/service/sts v1.28.7
14-
github.com/aws/smithy-go v1.20.2
15-
github.com/briandowns/spinner v1.23.0
16-
github.com/pterm/pterm v0.12.79
17-
github.com/spf13/cobra v1.8.0
18-
github.com/spf13/pflag v1.0.5
19-
github.com/spf13/viper v1.18.2
20-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
6+
github.com/aws/aws-sdk-go-v2 v1.39.6
7+
github.com/aws/aws-sdk-go-v2/config v1.31.20
8+
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.59.0
9+
github.com/aws/aws-sdk-go-v2/service/codecommit v1.33.3
10+
github.com/aws/aws-sdk-go-v2/service/iam v1.51.0
11+
github.com/aws/aws-sdk-go-v2/service/sts v1.40.2
12+
github.com/aws/smithy-go v1.23.2
13+
github.com/briandowns/spinner v1.23.2
14+
github.com/pterm/pterm v0.12.82
15+
github.com/spf13/cobra v1.10.1
16+
github.com/spf13/pflag v1.0.10
17+
github.com/spf13/viper v1.21.0
18+
golang.org/x/exp v0.0.0-20251113190631-e25ba8c21ef6
2119
gopkg.in/ini.v1 v1.67.0
2220
gopkg.in/yaml.v3 v3.0.1
23-
k8s.io/kubectl v0.30.0
21+
k8s.io/kubectl v0.34.2
2422
)
2523

2624
require (
2725
atomicgo.dev/cursor v0.2.0 // indirect
2826
atomicgo.dev/keyboard v0.2.9 // indirect
2927
atomicgo.dev/schedule v0.1.0 // indirect
30-
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
28+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
3129
github.com/MakeNowJust/heredoc v1.0.0 // indirect
32-
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
33-
github.com/aws/aws-sdk-go-v2/credentials v1.17.12 // indirect
34-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
35-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
36-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
37-
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
38-
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
39-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
40-
github.com/aws/aws-sdk-go-v2/service/sso v1.20.6 // indirect
41-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.5 // indirect
42-
github.com/containerd/console v1.0.4 // indirect
43-
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
30+
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.3 // indirect
31+
github.com/aws/aws-sdk-go-v2/credentials v1.18.24 // indirect
32+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.13 // indirect
33+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13 // indirect
34+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13 // indirect
35+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
36+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 // indirect
37+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13 // indirect
38+
github.com/aws/aws-sdk-go-v2/service/sso v1.30.3 // indirect
39+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.7 // indirect
40+
github.com/clipperhouse/stringish v0.1.1 // indirect
41+
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
42+
github.com/containerd/console v1.0.5 // indirect
43+
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
4444
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
45-
github.com/fatih/color v1.16.0 // indirect
46-
github.com/fsnotify/fsnotify v1.7.0 // indirect
47-
github.com/go-logr/logr v1.4.1 // indirect
45+
github.com/fatih/color v1.18.0 // indirect
46+
github.com/fsnotify/fsnotify v1.9.0 // indirect
47+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
48+
github.com/go-logr/logr v1.4.3 // indirect
49+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
4850
github.com/gogo/protobuf v1.3.2 // indirect
49-
github.com/google/gofuzz v1.2.0 // indirect
50-
github.com/gookit/color v1.5.4 // indirect
51-
github.com/gorilla/websocket v1.5.1 // indirect
52-
github.com/hashicorp/hcl v1.0.0 // indirect
51+
github.com/gookit/color v1.6.0 // indirect
52+
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
5353
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5454
github.com/json-iterator/go v1.1.12 // indirect
5555
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
5656
github.com/lithammer/fuzzysearch v1.1.8 // indirect
57-
github.com/magiconair/properties v1.8.7 // indirect
58-
github.com/mattn/go-colorable v0.1.13 // indirect
57+
github.com/mattn/go-colorable v0.1.14 // indirect
5958
github.com/mattn/go-isatty v0.0.20 // indirect
60-
github.com/mattn/go-runewidth v0.0.15 // indirect
59+
github.com/mattn/go-runewidth v0.0.19 // indirect
6160
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
62-
github.com/mitchellh/mapstructure v1.5.0 // indirect
63-
github.com/moby/spdystream v0.2.0 // indirect
64-
github.com/moby/term v0.5.0 // indirect
61+
github.com/moby/spdystream v0.5.0 // indirect
62+
github.com/moby/term v0.5.2 // indirect
6563
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
66-
github.com/modern-go/reflect2 v1.0.2 // indirect
64+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
65+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6766
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
68-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
69-
github.com/rivo/uniseg v0.4.7 // indirect
67+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
7068
github.com/russross/blackfriday/v2 v2.1.0 // indirect
71-
github.com/sagikazarmark/locafero v0.4.0 // indirect
72-
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
69+
github.com/sagikazarmark/locafero v0.12.0 // indirect
7370
github.com/sergi/go-diff v1.3.1 // indirect
74-
github.com/sourcegraph/conc v0.3.0 // indirect
75-
github.com/spf13/afero v1.11.0 // indirect
76-
github.com/spf13/cast v1.6.0 // indirect
71+
github.com/spf13/afero v1.15.0 // indirect
72+
github.com/spf13/cast v1.10.0 // indirect
7773
github.com/subosito/gotenv v1.6.0 // indirect
74+
github.com/x448/float16 v0.8.4 // indirect
7875
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
79-
go.uber.org/multierr v1.11.0 // indirect
80-
golang.org/x/net v0.25.0 // indirect
81-
golang.org/x/oauth2 v0.20.0 // indirect
82-
golang.org/x/sys v0.20.0 // indirect
83-
golang.org/x/term v0.20.0 // indirect
84-
golang.org/x/text v0.15.0 // indirect
85-
golang.org/x/time v0.5.0 // indirect
86-
google.golang.org/protobuf v1.34.1 // indirect
76+
go.yaml.in/yaml/v2 v2.4.3 // indirect
77+
go.yaml.in/yaml/v3 v3.0.4 // indirect
78+
golang.org/x/net v0.47.0 // indirect
79+
golang.org/x/oauth2 v0.33.0 // indirect
80+
golang.org/x/sys v0.38.0 // indirect
81+
golang.org/x/term v0.37.0 // indirect
82+
golang.org/x/text v0.31.0 // indirect
83+
golang.org/x/time v0.14.0 // indirect
8784
gopkg.in/inf.v0 v0.9.1 // indirect
88-
gopkg.in/yaml.v2 v2.4.0 // indirect
89-
k8s.io/api v0.30.0 // indirect
90-
k8s.io/apimachinery v0.30.0 // indirect
91-
k8s.io/cli-runtime v0.30.0 // indirect
92-
k8s.io/client-go v0.30.0 // indirect
93-
k8s.io/klog/v2 v2.120.1 // indirect
94-
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 // indirect
95-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
96-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
97-
sigs.k8s.io/yaml v1.4.0 // indirect
85+
k8s.io/api v0.34.2 // indirect
86+
k8s.io/apimachinery v0.34.2 // indirect
87+
k8s.io/cli-runtime v0.34.2 // indirect
88+
k8s.io/client-go v0.34.2 // indirect
89+
k8s.io/klog/v2 v2.130.1 // indirect
90+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
91+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
92+
sigs.k8s.io/randfill v1.0.0 // indirect
93+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
94+
sigs.k8s.io/yaml v1.6.0 // indirect
9895
)

0 commit comments

Comments
 (0)