Skip to content

Commit

Permalink
bugfix: resolved loadconfiguration path by placing verboselogger in c…
Browse files Browse the repository at this point in the history
…orrect func
  • Loading branch information
stcrestrada committed May 28, 2024
1 parent 0abc41a commit 32ba9b9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion cmd/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion cmd/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
1 change: 0 additions & 1 deletion cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 32ba9b9

Please sign in to comment.