From 32ba9b9ff5e4c66f5aee01195ac8c35340feba17 Mon Sep 17 00:00:00 2001 From: Stephen Estrada Date: Tue, 28 May 2024 18:31:27 -0400 Subject: [PATCH] bugfix: resolved loadconfiguration path by placing verboselogger in correct func --- cmd/add.go | 1 - cmd/clone.go | 1 - cmd/init.go | 1 - cmd/pull.go | 1 - cmd/remove.go | 1 - cmd/status.go | 1 - pkg/util/util.go | 2 +- 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/add.go b/cmd/add.go index 3cce214..885ae57 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -55,6 +55,5 @@ func (cmd *AddCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/cmd/clone.go b/cmd/clone.go index 83645d7..94efe95 100644 --- a/cmd/clone.go +++ b/cmd/clone.go @@ -123,6 +123,5 @@ func (cmd *CloneCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/cmd/init.go b/cmd/init.go index e5f06c9..ad4c8f4 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -65,6 +65,5 @@ func (cmd *InitCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/cmd/pull.go b/cmd/pull.go index 73d6692..7a5d74e 100644 --- a/cmd/pull.go +++ b/cmd/pull.go @@ -111,6 +111,5 @@ func (cmd *PullCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/cmd/remove.go b/cmd/remove.go index 7d2d29a..5673d5d 100644 --- a/cmd/remove.go +++ b/cmd/remove.go @@ -95,7 +95,6 @@ func (cmd *RemoveCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/cmd/status.go b/cmd/status.go index 37ea3fe..6df07df 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -114,6 +114,5 @@ func (cmd *StatusCommand) LoadConfiguration() (*types.GeeContext, error) { if err != nil { return nil, err } - util.VerboseLog("loaded gee.toml configuration from %s", cwd) return util.NewConfigHelper().LoadConfig(cwd) } diff --git a/pkg/util/util.go b/pkg/util/util.go index 22a95c4..622900b 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -71,7 +71,7 @@ func (h *ConfigHelper) LoadConfig(cwd string) (*types.GeeContext, error) { if err != nil { return nil, err } - + VerboseLog("loaded gee.toml from %s", geeConfig.ConfigFilePath) return &types.GeeContext{ GeeConfigInfo: *geeConfig, Config: *conf,