Skip to content
Snippets Groups Projects

Resolve "Fix setting passthrough and other things in cli/root in every cmd execute"

Description

Since cobra.OnInitalize gets called called every time a command is executed, all the things done in our initConfig function get executed on every cmd execute. Just calling initConfig once when the root cmd gets initiated should be sufficient for our case, because everything we are doing there is supposed to be available/configured package wide anyway. This way, we are not doing any unnecessary setting of config things on every cmd execute.

Related to #377

Edited by Fabian Seidl

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading