From ad46e31d75fdd508a6287ee1346aa85772fdc314 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Wed, 6 Dec 2023 22:07:59 -0800 Subject: [PATCH 01/11] wip: parent tags --- cmd/sncli/main.go | 10 +++++++++- cmd/sncli/tag.go | 8 +++++--- main.go | 10 ++++++---- tag.go | 18 ++++++++++++++---- 4 files changed, 34 insertions(+), 12 deletions(-) diff --git a/cmd/sncli/main.go b/cmd/sncli/main.go index 32236a4..35a452a 100644 --- a/cmd/sncli/main.go +++ b/cmd/sncli/main.go @@ -263,13 +263,21 @@ func startCLI(args []string) (msg string, useStdOut bool, err error) { if c.NArg() > 0 { return } - fmt.Println("--title") + fmt.Println("--title", "--parent", "--parent-uuid") }, Flags: []cli.Flag{ cli.StringFlag{ Name: "title", Usage: "new tag title (separate multiple with commas)", }, + cli.StringFlag{ + Name: "parent", + Usage: "parent tag title to make a sub-tag of", + }, + cli.StringFlag{ + Name: "parent-uuid", + Usage: "parent tag uuid to make a sub-tag of", + }, }, Action: func(c *cli.Context) error { var opts configOptsOutput diff --git a/cmd/sncli/tag.go b/cmd/sncli/tag.go index ce74f5e..9475fda 100644 --- a/cmd/sncli/tag.go +++ b/cmd/sncli/tag.go @@ -397,9 +397,11 @@ func processAddTags(c *cli.Context, opts configOptsOutput) (msg string, err erro // prepare input tags := sncli.CommaSplit(tagInput) addTagInput := sncli.AddTagsInput{ - Session: &session, - Tags: tags, - Debug: opts.debug, + Session: &session, + Tags: tags, + Parent: c.String("parent"), + ParentUUID: c.String("parent-uuid"), + Debug: opts.debug, } // attempt to add tags diff --git a/main.go b/main.go index 8770e9c..71e6da9 100644 --- a/main.go +++ b/main.go @@ -151,10 +151,12 @@ type TagItemsConfig struct { } type AddTagsInput struct { - Session *cache.Session - Tags []string - Debug bool - Replace bool + Session *cache.Session + Tags []string + Parent string + ParentUUID string + Debug bool + Replace bool } type AddTagsOutput struct { diff --git a/tag.go b/tag.go index 5e241cb..d902903 100644 --- a/tag.go +++ b/tag.go @@ -346,9 +346,11 @@ func deleteTags(session *cache.Session, tagTitles []string, tagUUIDs []string) ( } type addTagsInput struct { - session *cache.Session - tagTitles []string - replace bool + session *cache.Session + tagTitles []string + parent string + parentUUID string + replace bool } type addTagsOutput struct { @@ -399,6 +401,7 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { gItems.Filter(addFilter) var allTags items.Tags + var parentRef items.ItemReferences for _, item := range gItems { if item.IsDeleted() { @@ -408,6 +411,13 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { if item.GetContentType() == "Tag" { tag := item.(*items.Tag) allTags = append(allTags, *tag) + if tag.Content.GetTitle() == ati.parent || tag.GetUUID() == ati.parentUUID { + itemRef := gosn.ItemReference{ + UUID: tag.GetUUID(), + ContentType: "Tag", + } + parentRef = gosn.ItemReferences{itemRef} + } } } @@ -419,7 +429,7 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { continue } - newTag, _ := items.NewTag(tag, nil) + newTag, _ := items.NewTag(tag, parentRef) tagsToAdd = append(tagsToAdd, newTag) ato.added = append(ato.added, tag) From 08e08fc98f70fc6784a55a2b14b331c4bbb72e05 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Thu, 7 Dec 2023 22:49:17 -0800 Subject: [PATCH 02/11] wip: parent tags --- .gitignore | 3 +++ cmd/sncli/tag.go | 5 +++++ tag.go | 17 ++++++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0665733..2460bda 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,9 @@ coverage.txt # local build .local_dist +bin/* +!bin/.gitkeep + # github release build dist diff --git a/cmd/sncli/tag.go b/cmd/sncli/tag.go index 9475fda..2a5d459 100644 --- a/cmd/sncli/tag.go +++ b/cmd/sncli/tag.go @@ -377,12 +377,17 @@ func processGetTags(c *cli.Context, opts configOptsOutput) (msg string, err erro func processAddTags(c *cli.Context, opts configOptsOutput) (msg string, err error) { // validate input tagInput := c.String("title") + // parentTitle := c.String("parent") if strings.TrimSpace(tagInput) == "" { _ = cli.ShowSubcommandHelp(c) return "", errors.New("tag title not defined") } + // getParent := gosn.ItemFilters{ + // MatchAny: true, + // } + // get session session, _, err := cache.GetSession(opts.useSession, opts.sessKey, opts.server, opts.debug) if err != nil { diff --git a/tag.go b/tag.go index d902903..1798c10 100644 --- a/tag.go +++ b/tag.go @@ -1,6 +1,7 @@ package sncli import ( + "errors" "strings" "github.com/jonhadfield/gosn-v2/cache" @@ -181,9 +182,11 @@ func (i *AddTagsInput) Run() (output AddTagsOutput, err error) { }() ati := addTagsInput{ - tagTitles: i.Tags, - session: i.Session, - replace: i.Replace, + tagTitles: i.Tags, + parent: i.Parent, + parentUUID: i.ParentUUID, + session: i.Session, + replace: i.Replace, } var ato addTagsOutput @@ -421,6 +424,14 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { } } + if ati.parent != "" && len(parentRef) == 0 { + return ato, errors.New("parent tag not found by title") + } + + if ati.parentUUID != "" && len(parentRef) == 0 { + return ato, errors.New("parent tag not found by UUID") + } + var tagsToAdd items.Tags for _, tag := range ati.tagTitles { From d9fef3af27fcf0d7426fa1f699d70d888d081db0 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Sun, 10 Dec 2023 21:17:32 -0800 Subject: [PATCH 03/11] nested tag by parent worked --- Makefile | 5 ++--- cmd/sncli/tag.go | 4 ---- go.mod | 3 ++- helpers.go | 8 ++++---- main.go | 5 +++-- tag.go | 5 +++-- 6 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 533f874..04ba3f1 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,8 @@ clean: rm -rf ./dist setup: - go get -u github.com/alecthomas/gometalinter - go get -u golang.org/x/tools/cmd/cover - gometalinter --install --update + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 + go install -v github.com/go-critic/go-critic/cmd/gocritic@latest test: echo 'mode: atomic' > coverage.txt && go list ./... | xargs -n1 -I{} sh -c 'go test -v -failfast -p 1 -parallel 1 -timeout=600s -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.txt' && rm coverage.tmp diff --git a/cmd/sncli/tag.go b/cmd/sncli/tag.go index 2a5d459..0690b8f 100644 --- a/cmd/sncli/tag.go +++ b/cmd/sncli/tag.go @@ -384,10 +384,6 @@ func processAddTags(c *cli.Context, opts configOptsOutput) (msg string, err erro return "", errors.New("tag title not defined") } - // getParent := gosn.ItemFilters{ - // MatchAny: true, - // } - // get session session, _, err := cache.GetSession(opts.useSession, opts.sessKey, opts.server, opts.debug) if err != nil { diff --git a/go.mod b/go.mod index 2af6c20..52edf41 100644 --- a/go.mod +++ b/go.mod @@ -60,4 +60,5 @@ require ( golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect ) -//replace github.com/jonhadfield/gosn-v2 => ../gosn-v2 +//TODO: comment out before release +replace github.com/jonhadfield/gosn-v2 => ../gosn diff --git a/helpers.go b/helpers.go index 13e67f9..ad2680b 100644 --- a/helpers.go +++ b/helpers.go @@ -4,7 +4,6 @@ import ( "encoding/gob" "encoding/json" "fmt" - "io/ioutil" "os" "strings" @@ -132,7 +131,7 @@ type EncryptedItemsFile struct { } func readJSON(filePath string) (items items.EncryptedItems, err error) { - file, err := ioutil.ReadFile(filePath) + file, err := os.ReadFile(filePath) if err != nil { err = fmt.Errorf("%w failed to open: %s", err, filePath) return @@ -168,8 +167,9 @@ func ItemRefsToJSON(irs []items.ItemReference) []ItemReferenceJSON { for _, ref := range irs { iRef := ItemReferenceJSON{ - UUID: ref.UUID, - ContentType: ref.ContentType, + UUID: ref.UUID, + ContentType: ref.ContentType, + ReferenceType: ref.ReferenceType, } iRefs = append(iRefs, iRef) } diff --git a/main.go b/main.go index 71e6da9..ee608c9 100644 --- a/main.go +++ b/main.go @@ -23,8 +23,9 @@ type ItemReferenceYAML struct { } type ItemReferenceJSON struct { - UUID string `json:"uuid"` - ContentType string `json:"content_type"` + UUID string `json:"uuid"` + ContentType string `json:"content_type"` + ReferenceType string `json:"reference_type",omitempty` } type OrgStandardNotesSNDetailJSON struct { diff --git a/tag.go b/tag.go index 1798c10..0a04d69 100644 --- a/tag.go +++ b/tag.go @@ -416,8 +416,9 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { allTags = append(allTags, *tag) if tag.Content.GetTitle() == ati.parent || tag.GetUUID() == ati.parentUUID { itemRef := gosn.ItemReference{ - UUID: tag.GetUUID(), - ContentType: "Tag", + UUID: tag.GetUUID(), + ContentType: "Tag", + ReferenceType: "TagToParentTag", } parentRef = gosn.ItemReferences{itemRef} } From 8154a07f3fd0318c8264f679b3d550d6f6d47611 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Sun, 10 Dec 2023 21:47:04 -0800 Subject: [PATCH 04/11] uuid working, double parent checked --- tag.go | 3 +++ tag_test.go | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/tag.go b/tag.go index 0a04d69..23f9bcc 100644 --- a/tag.go +++ b/tag.go @@ -415,6 +415,9 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { tag := item.(*items.Tag) allTags = append(allTags, *tag) if tag.Content.GetTitle() == ati.parent || tag.GetUUID() == ati.parentUUID { + if parentRef != nil { + return ato, errors.New("multiple parent tags found, specify by UUID") + } itemRef := gosn.ItemReference{ UUID: tag.GetUUID(), ContentType: "Tag", diff --git a/tag_test.go b/tag_test.go index a2ffc37..ede457d 100644 --- a/tag_test.go +++ b/tag_test.go @@ -33,6 +33,41 @@ func TestAddDeleteTagByTitle(t *testing.T) { require.NoError(t, err) } +func TestAddTagWithParent(t *testing.T) { + testDelay() + + addTagConfigParent := AddTagsInput{ + Session: testSession, + Tags: []string{"TestTagParent"}, + } + + ato, err := addTagConfigParent.Run() + require.NoError(t, err) + require.Contains(t, ato.Added, "TestTagParent") + require.Empty(t, ato.Existing) + + addTagConfigChild := AddTagsInput{ + Session: testSession, + Tags: []string{"TestTagChild"}, + Parent: "TestTagParent", + } + + ato, err := addTagConfigChild.Run() + require.NoError(t, err) + require.Contains(t, ato.Added, "TestTagChild") + require.Empty(t, ato.Existing) + + deleteTagConfig := DeleteTagConfig{ + Session: testSession, + TagTitles: []string{"TestTagParent", "TestTagChild"}, + } + + var noDeleted int + noDeleted, err = deleteTagConfig.Run() + require.Equal(t, 2, noDeleted) + require.NoError(t, err) +} + func TestGetTag(t *testing.T) { testDelay() From 24c4394d972e32629fb7959743b512bf6fcf2333 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Sun, 10 Dec 2023 22:06:48 -0800 Subject: [PATCH 05/11] fixing default match tag --- cmd/sncli/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sncli/tag.go b/cmd/sncli/tag.go index 0690b8f..9238545 100644 --- a/cmd/sncli/tag.go +++ b/cmd/sncli/tag.go @@ -206,7 +206,7 @@ func processGetTags(c *cli.Context, opts configOptsOutput) (msg string, err erro inTitle := strings.TrimSpace(c.String("title")) inUUID := strings.TrimSpace(c.String("uuid")) - var matchAny bool + matchAny := true if c.Bool("match-all") { matchAny = false } From 8c6e606cf7dea4dc836b1c04482f1aaa24db17c5 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Sun, 10 Dec 2023 22:09:52 -0800 Subject: [PATCH 06/11] fix test def --- tag_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag_test.go b/tag_test.go index ede457d..1e6c217 100644 --- a/tag_test.go +++ b/tag_test.go @@ -52,7 +52,7 @@ func TestAddTagWithParent(t *testing.T) { Parent: "TestTagParent", } - ato, err := addTagConfigChild.Run() + ato, err = addTagConfigChild.Run() require.NoError(t, err) require.Contains(t, ato.Added, "TestTagChild") require.Empty(t, ato.Existing) From 01bf2288c3c1385e24360a398a64154130a919a4 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Mon, 11 Dec 2023 00:00:21 -0800 Subject: [PATCH 07/11] remove commented out code --- cmd/sncli/tag.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/sncli/tag.go b/cmd/sncli/tag.go index 9238545..9c59564 100644 --- a/cmd/sncli/tag.go +++ b/cmd/sncli/tag.go @@ -377,7 +377,6 @@ func processGetTags(c *cli.Context, opts configOptsOutput) (msg string, err erro func processAddTags(c *cli.Context, opts configOptsOutput) (msg string, err error) { // validate input tagInput := c.String("title") - // parentTitle := c.String("parent") if strings.TrimSpace(tagInput) == "" { _ = cli.ShowSubcommandHelp(c) From 79fef087efbbbdc24a7bb6969138a407afd90bd5 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Mon, 11 Dec 2023 23:16:38 -0800 Subject: [PATCH 08/11] fixing gosn to items --- tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tag.go b/tag.go index 23f9bcc..38d0c4d 100644 --- a/tag.go +++ b/tag.go @@ -418,12 +418,12 @@ func addTags(ati addTagsInput) (ato addTagsOutput, err error) { if parentRef != nil { return ato, errors.New("multiple parent tags found, specify by UUID") } - itemRef := gosn.ItemReference{ + itemRef := items.ItemReference{ UUID: tag.GetUUID(), ContentType: "Tag", ReferenceType: "TagToParentTag", } - parentRef = gosn.ItemReferences{itemRef} + parentRef = items.ItemReferences{itemRef} } } } From 35abddb318017a6d728b346c9465128d89449250 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Mon, 11 Dec 2023 23:29:01 -0800 Subject: [PATCH 09/11] adding yaml, changing go.mod back to normal --- go.mod | 3 +-- helpers.go | 5 +++-- main.go | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 52edf41..7fac9be 100644 --- a/go.mod +++ b/go.mod @@ -60,5 +60,4 @@ require ( golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect ) -//TODO: comment out before release -replace github.com/jonhadfield/gosn-v2 => ../gosn +// replace github.com/jonhadfield/gosn-v2 => ../gosn-v2 diff --git a/helpers.go b/helpers.go index ad2680b..cbe40f4 100644 --- a/helpers.go +++ b/helpers.go @@ -153,8 +153,9 @@ func ItemRefsToYaml(irs []items.ItemReference) []ItemReferenceYAML { for _, ref := range irs { iRef := ItemReferenceYAML{ - UUID: ref.UUID, - ContentType: ref.ContentType, + UUID: ref.UUID, + ContentType: ref.ContentType, + ReferenceType: ref.ReferenceType, } iRefs = append(iRefs, iRef) } diff --git a/main.go b/main.go index ee608c9..49dff55 100644 --- a/main.go +++ b/main.go @@ -18,8 +18,9 @@ const ( ) type ItemReferenceYAML struct { - UUID string `yaml:"uuid"` - ContentType string `yaml:"content_type"` + UUID string `yaml:"uuid"` + ContentType string `yaml:"content_type"` + ReferenceType string `yaml:"reference_type",omitempty` } type ItemReferenceJSON struct { From 3de96351857044e8fbf5388fde3c5122ebdc6ff6 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Mon, 11 Dec 2023 23:34:31 -0800 Subject: [PATCH 10/11] replacing with fork --- go.mod | 1 + go.sum | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 7fac9be..0dc34fc 100644 --- a/go.mod +++ b/go.mod @@ -61,3 +61,4 @@ require ( ) // replace github.com/jonhadfield/gosn-v2 => ../gosn-v2 +replace github.com/jonhadfield/gosn-v2 => github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163 diff --git a/go.sum b/go.sum index ef12b20..34f7441 100644 --- a/go.sum +++ b/go.sum @@ -11,6 +11,8 @@ github.com/briandowns/spinner v1.23.0 h1:alDF2guRWqa/FOZZYWjlMIx2L6H0wyewPxo/CH4 github.com/briandowns/spinner v1.23.0/go.mod h1:rPG4gmXeN3wQV/TsAY4w8lPdIM6RX3yqeBQJSrbXjuE= github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U= +github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163 h1:fdxT7pcOe1n9xZ+4P+XJ41Ko4UhLvO/g/UwO/Iz71vg= +github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163/go.mod h1:4/EdV1iRAKpaa4ZcF1TuniwRaajeWIMyMEWkrVnq/k8= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -52,8 +54,6 @@ github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/jonhadfield/gosn-v2 v0.0.0-20231211223627-abb88b737146 h1:JPl0PwwOe06qDLz3g98RimTAYbJ0Wq7SYNLgtxdiH5Q= -github.com/jonhadfield/gosn-v2 v0.0.0-20231211223627-abb88b737146/go.mod h1:4/EdV1iRAKpaa4ZcF1TuniwRaajeWIMyMEWkrVnq/k8= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= From ccda2315410d18c371a97eeb7d3215f42995ab38 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Tue, 12 Dec 2023 19:46:42 -0800 Subject: [PATCH 11/11] updating go.mod/sum --- go.mod | 5 ++--- go.sum | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 0dc34fc..36c3d8a 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/fatih/color v1.16.0 github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect - github.com/jonhadfield/gosn-v2 v0.0.0-20231211223627-abb88b737146 + github.com/jonhadfield/gosn-v2 v0.0.0-20231212210044-96a40e9cc8cc github.com/ryanuber/columnize v2.1.2+incompatible github.com/spf13/viper v1.18.1 github.com/stretchr/testify v1.8.4 @@ -60,5 +60,4 @@ require ( golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect ) -// replace github.com/jonhadfield/gosn-v2 => ../gosn-v2 -replace github.com/jonhadfield/gosn-v2 => github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163 +//replace github.com/jonhadfield/gosn-v2 => ../gosn-v2 diff --git a/go.sum b/go.sum index 34f7441..8edfe3e 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,6 @@ github.com/briandowns/spinner v1.23.0 h1:alDF2guRWqa/FOZZYWjlMIx2L6H0wyewPxo/CH4 github.com/briandowns/spinner v1.23.0/go.mod h1:rPG4gmXeN3wQV/TsAY4w8lPdIM6RX3yqeBQJSrbXjuE= github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U= -github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163 h1:fdxT7pcOe1n9xZ+4P+XJ41Ko4UhLvO/g/UwO/Iz71vg= -github.com/clayrosenthal/gosn-v2 v0.0.0-20231212073032-3d59f6965163/go.mod h1:4/EdV1iRAKpaa4ZcF1TuniwRaajeWIMyMEWkrVnq/k8= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -54,6 +52,8 @@ github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/jonhadfield/gosn-v2 v0.0.0-20231212210044-96a40e9cc8cc h1:f3RUJ+JRyS1q6Hpm1e36xC3grCec0KRBvC2fuk0+pvo= +github.com/jonhadfield/gosn-v2 v0.0.0-20231212210044-96a40e9cc8cc/go.mod h1:4/EdV1iRAKpaa4ZcF1TuniwRaajeWIMyMEWkrVnq/k8= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=