mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: moved internal functions to pkg and updated refs
This commit is contained in:
parent
2814028b36
commit
f9b56fdc54
2 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,10 @@ package cmd
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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/cznic/mathutil"
|
||||||
"github.com/davidallendj/magellan/internal/cache/sqlite"
|
"github.com/davidallendj/magellan/internal/cache/sqlite"
|
||||||
urlx "github.com/davidallendj/magellan/internal/url"
|
urlx "github.com/davidallendj/magellan/internal/url"
|
||||||
|
|
|
||||||
|
|
@ -133,5 +133,5 @@ func init() {
|
||||||
checkBindFlagError(viper.BindPFlag("update.status", updateCmd.Flags().Lookup("status")))
|
checkBindFlagError(viper.BindPFlag("update.status", updateCmd.Flags().Lookup("status")))
|
||||||
checkBindFlagError(viper.BindPFlag("update.insecure", updateCmd.Flags().Lookup("insecure")))
|
checkBindFlagError(viper.BindPFlag("update.insecure", updateCmd.Flags().Lookup("insecure")))
|
||||||
|
|
||||||
rootCmd.AddCommand(UpdateCmd)
|
rootCmd.AddCommand(updateCmd)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue