Skip to content

Commit f331775

Browse files
authored
feat: change yq command call to yq library (#3)
1 parent 7b17d62 commit f331775

File tree

9 files changed

+427
-84
lines changed

9 files changed

+427
-84
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@
1313

1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
16+
17+
# VisualStudioCode
18+
.vscode/*
19+
20+
### Intellij ###
21+
.idea

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/helm-repo-updater.iml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

go.mod

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ go 1.17
44

55
require (
66
github.com/argoproj-labs/argocd-image-updater v0.11.0
7-
github.com/spf13/cobra v1.1.3
8-
github.com/spf13/viper v1.7.0
7+
github.com/mikefarah/yq/v4 v4.16.2
8+
github.com/pkg/errors v0.9.1
9+
github.com/spf13/cobra v1.3.0
10+
github.com/spf13/viper v1.10.0
11+
gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473
12+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
913
)
1014

1115
require (
@@ -15,38 +19,46 @@ require (
1519
github.com/bombsimon/logrusr v1.0.0 // indirect
1620
github.com/bradleyfalzon/ghinstallation v1.1.1 // indirect
1721
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
22+
github.com/elliotchance/orderedmap v1.4.0 // indirect
1823
github.com/emirpasic/gods v1.12.0 // indirect
19-
github.com/fsnotify/fsnotify v1.4.9 // indirect
24+
github.com/fatih/color v1.13.0 // indirect
25+
github.com/fsnotify/fsnotify v1.5.1 // indirect
2026
github.com/go-git/gcfg v1.5.0 // indirect
2127
github.com/go-git/go-billy/v5 v5.0.0 // indirect
2228
github.com/go-git/go-git/v5 v5.2.0 // indirect
2329
github.com/go-logr/logr v0.4.0 // indirect
30+
github.com/goccy/go-yaml v1.9.4 // indirect
2431
github.com/google/go-github/v29 v29.0.2 // indirect
2532
github.com/google/go-querystring v1.1.0 // indirect
2633
github.com/hashicorp/hcl v1.0.0 // indirect
2734
github.com/imdario/mergo v0.3.10 // indirect
2835
github.com/inconshreveable/mousetrap v1.0.0 // indirect
2936
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
37+
github.com/jinzhu/copier v0.3.4 // indirect
3038
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
31-
github.com/magiconair/properties v1.8.1 // indirect
39+
github.com/magiconair/properties v1.8.5 // indirect
40+
github.com/mattn/go-colorable v0.1.12 // indirect
41+
github.com/mattn/go-isatty v0.0.14 // indirect
3242
github.com/mitchellh/go-homedir v1.1.0 // indirect
33-
github.com/mitchellh/mapstructure v1.1.2 // indirect
43+
github.com/mitchellh/mapstructure v1.4.3 // indirect
3444
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
35-
github.com/pelletier/go-toml v1.2.0 // indirect
36-
github.com/pkg/errors v0.9.1 // indirect
45+
github.com/pelletier/go-toml v1.9.4 // indirect
3746
github.com/sergi/go-diff v1.1.0 // indirect
3847
github.com/sirupsen/logrus v1.8.1 // indirect
39-
github.com/spf13/afero v1.2.2 // indirect
40-
github.com/spf13/cast v1.3.0 // indirect
48+
github.com/spf13/afero v1.6.0 // indirect
49+
github.com/spf13/cast v1.4.1 // indirect
4150
github.com/spf13/jwalterweatherman v1.1.0 // indirect
4251
github.com/spf13/pflag v1.0.5 // indirect
4352
github.com/subosito/gotenv v1.2.0 // indirect
53+
github.com/timtadh/data-structures v0.5.3 // indirect
54+
github.com/timtadh/lexmachine v0.2.2 // indirect
4455
github.com/xanzy/ssh-agent v0.2.1 // indirect
4556
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
46-
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
47-
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect
48-
golang.org/x/text v0.3.6 // indirect
49-
gopkg.in/ini.v1 v1.57.0 // indirect
57+
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
58+
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
59+
golang.org/x/text v0.3.7 // indirect
60+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
61+
gopkg.in/ini.v1 v1.66.2 // indirect
5062
gopkg.in/warnings.v0 v0.1.2 // indirect
5163
gopkg.in/yaml.v2 v2.4.0 // indirect
5264
)

0 commit comments

Comments
 (0)