From 9798538e1a9a65fd378747157577b1807cab3682 Mon Sep 17 00:00:00 2001 From: Koustav Date: Tue, 6 Aug 2024 13:29:20 +0530 Subject: [PATCH] GO FUMPTED --- cmd/client.go | 3 ++- cmd/pre.go | 1 + cmd/profile.go | 1 + cmd/role.go | 3 ++- cmd/tail.go | 1 + pkg/model/credential/credential.go | 3 ++- pkg/model/defaultprofile/profile.go | 1 + pkg/model/query.go | 5 +++-- pkg/model/role/role.go | 3 ++- pkg/model/timeinput.go | 3 ++- 10 files changed, 17 insertions(+), 7 deletions(-) diff --git a/cmd/client.go b/cmd/client.go index 2675796..543cbaf 100644 --- a/cmd/client.go +++ b/cmd/client.go @@ -20,8 +20,9 @@ import ( "io" "net/http" "net/url" - "pb/pkg/config" "time" + + "pb/pkg/config" ) type HTTPClient struct { diff --git a/cmd/pre.go b/cmd/pre.go index d6bac82..d3423d6 100644 --- a/cmd/pre.go +++ b/cmd/pre.go @@ -19,6 +19,7 @@ package cmd import ( "errors" "os" + "pb/pkg/config" "github.com/spf13/cobra" diff --git a/cmd/profile.go b/cmd/profile.go index 10e2d03..b97bfd5 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -20,6 +20,7 @@ import ( "fmt" "net/url" "os" + "pb/pkg/config" "pb/pkg/model/credential" "pb/pkg/model/defaultprofile" diff --git a/cmd/role.go b/cmd/role.go index 7bcd927..6b8d9d9 100644 --- a/cmd/role.go +++ b/cmd/role.go @@ -21,10 +21,11 @@ import ( "fmt" "io" "os" - "pb/pkg/model/role" "strings" "sync" + "pb/pkg/model/role" + tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/spf13/cobra" diff --git a/cmd/tail.go b/cmd/tail.go index bf6725a..a71c71e 100644 --- a/cmd/tail.go +++ b/cmd/tail.go @@ -22,6 +22,7 @@ import ( "encoding/base64" "encoding/json" "fmt" + "pb/pkg/config" "github.com/apache/arrow/go/v13/arrow/array" diff --git a/pkg/model/credential/credential.go b/pkg/model/credential/credential.go index d906d7b..66a3eaf 100644 --- a/pkg/model/credential/credential.go +++ b/pkg/model/credential/credential.go @@ -17,9 +17,10 @@ package credential import ( - "pb/pkg/model/button" "strings" + "pb/pkg/model/button" + "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" diff --git a/pkg/model/defaultprofile/profile.go b/pkg/model/defaultprofile/profile.go index 9077054..2f8e168 100644 --- a/pkg/model/defaultprofile/profile.go +++ b/pkg/model/defaultprofile/profile.go @@ -18,6 +18,7 @@ package defaultprofile import ( "fmt" "io" + "pb/pkg/config" "github.com/charmbracelet/bubbles/list" diff --git a/pkg/model/query.go b/pkg/model/query.go index 5a25444..8e7ad99 100644 --- a/pkg/model/query.go +++ b/pkg/model/query.go @@ -23,12 +23,13 @@ import ( "math" "net/http" "os" - "pb/pkg/config" - "pb/pkg/iterator" "strings" "sync" "time" + "pb/pkg/config" + "pb/pkg/iterator" + "github.com/charmbracelet/bubbles/help" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/textarea" diff --git a/pkg/model/role/role.go b/pkg/model/role/role.go index 05783f1..9202fba 100644 --- a/pkg/model/role/role.go +++ b/pkg/model/role/role.go @@ -18,9 +18,10 @@ package role import ( "fmt" + "strings" + "pb/pkg/model/button" "pb/pkg/model/selection" - "strings" "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" diff --git a/pkg/model/timeinput.go b/pkg/model/timeinput.go index 7144ba7..4627fc7 100644 --- a/pkg/model/timeinput.go +++ b/pkg/model/timeinput.go @@ -18,9 +18,10 @@ package model import ( "fmt" - "pb/pkg/model/datetime" "time" + "pb/pkg/model/datetime" + "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/list" tea "github.com/charmbracelet/bubbletea"