From f6639ba34a34c7cf5f6fb34d4b3bfc12a96ace94 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Thu, 20 Feb 2025 17:09:21 -0700 Subject: [PATCH] refactor: moved internal functions to pkg and updated refs --- cmd/collect.go | 4 ++++ cmd/update.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/collect.go b/cmd/collect.go index f73de24..f8ff1de 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -3,6 +3,10 @@ package cmd import ( "encoding/json" + "github.com/OpenCHAMI/magellan/internal/cache/sqlite" + urlx "github.com/OpenCHAMI/magellan/internal/url" + magellan "github.com/OpenCHAMI/magellan/pkg" + "github.com/OpenCHAMI/magellan/pkg/auth" "github.com/cznic/mathutil" "github.com/davidallendj/magellan/internal/cache/sqlite" urlx "github.com/davidallendj/magellan/internal/urlx" diff --git a/cmd/update.go b/cmd/update.go index c537471..b1ab21a 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -131,5 +131,5 @@ func init() { checkBindFlagError(viper.BindPFlag("update.firmware-uri", UpdateCmd.Flags().Lookup("firmware-uri"))) checkBindFlagError(viper.BindPFlag("update.status", UpdateCmd.Flags().Lookup("status"))) - rootCmd.AddCommand(UpdateCmd) + rootCmd.AddCommand(updateCmd) }