Skip to content

Commit

Permalink
Rebase of Refactor flag handling (bitnami-labs#920)
Browse files Browse the repository at this point in the history
The run method was too long and it was impossible to figure out what each parameter meant.
Furthermore a few flags were still accessed via global variables making it hard to reason about
and to test properly.

This refactor moves all flags into a Flags struct. It also moves some other global variables like the ClientConfig to a Config struct that also holds the Flags.

The result: no more global variables and run now just calls with the config and an output writer.
  • Loading branch information
josvaz authored Aug 24, 2022
1 parent 0aca7c9 commit 6331b1c
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 159 deletions.
Loading

0 comments on commit 6331b1c

Please sign in to comment.