From 7f0494fbf2f5a5ccee23b821333a8578f5aaac76 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sat, 30 Nov 2024 15:57:04 +0100 Subject: [PATCH] added selfupdate --- cmd/carapace-spec/cmd/selfupdate.go | 9 +++++++++ cmd/go.mod | 3 ++- cmd/go.sum | 6 ++++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 cmd/carapace-spec/cmd/selfupdate.go diff --git a/cmd/carapace-spec/cmd/selfupdate.go b/cmd/carapace-spec/cmd/selfupdate.go new file mode 100644 index 0000000..797c58a --- /dev/null +++ b/cmd/carapace-spec/cmd/selfupdate.go @@ -0,0 +1,9 @@ +package cmd + +import selfupdate "github.com/carapace-sh/carapace-selfupdate" + +var selfupdateCmd = selfupdate.Command("carapace-sh", "carapace-spec") + +func init() { + rootCmd.AddCommand(selfupdateCmd) +} diff --git a/cmd/go.mod b/cmd/go.mod index 5e98a8d..84d5628 100644 --- a/cmd/go.mod +++ b/cmd/go.mod @@ -5,7 +5,8 @@ go 1.23.1 replace github.com/carapace-sh/carapace-spec => ../ require ( - github.com/carapace-sh/carapace v1.4.0 + github.com/carapace-sh/carapace v1.5.0 + github.com/carapace-sh/carapace-selfupdate v0.0.5 github.com/carapace-sh/carapace-spec v0.0.0-00010101000000-000000000000 github.com/invopop/jsonschema v0.12.0 github.com/spf13/cobra v1.8.1 diff --git a/cmd/go.sum b/cmd/go.sum index 636ae21..2e09d34 100644 --- a/cmd/go.sum +++ b/cmd/go.sum @@ -2,10 +2,12 @@ github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPn github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/carapace-sh/carapace v1.4.0 h1:GoCzicKhRgf7/BYZAS/pCBrU3dU4vzISn5XenuOgSh8= -github.com/carapace-sh/carapace v1.4.0/go.mod h1:djegtVDi/3duSAqZNU+/nCq7XtDRMRZUb5bW0O/HnEs= +github.com/carapace-sh/carapace v1.5.0 h1:rjNMTo5sY3YybMKbzEuaM19HEG6JXhvCTOrioV0QUHY= +github.com/carapace-sh/carapace v1.5.0/go.mod h1:djegtVDi/3duSAqZNU+/nCq7XtDRMRZUb5bW0O/HnEs= github.com/carapace-sh/carapace-pflag v1.0.0 h1:uJMhl+vwEM/Eb0UdxZUuv4jo4rUAyPijkRGP5gfCuCE= github.com/carapace-sh/carapace-pflag v1.0.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/carapace-sh/carapace-selfupdate v0.0.5 h1:Th7PtHlS2Kuhs1Kn+qskVoGWaPKFCwbvDrU4bVQA43c= +github.com/carapace-sh/carapace-selfupdate v0.0.5/go.mod h1:gyvAPrYpUU6pCgH+Mox+LTotxCQmUTHl+u/g4j/H9aQ= github.com/carapace-sh/carapace-shlex v1.0.1 h1:ww0JCgWpOVuqWG7k3724pJ18Lq8gh5pHQs9j3ojUs1c= github.com/carapace-sh/carapace-shlex v1.0.1/go.mod h1:lJ4ZsdxytE0wHJ8Ta9S7Qq0XpjgjU0mdfCqiI2FHx7M= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=