Skip to content

Commit

Permalink
Make the kubeseal CLI have a skinny main (#939)
Browse files Browse the repository at this point in the history
The CLI had way too much code within the main package.

This change moves most of the kubeseal CLI code to a package "pkg/kubeseal", leaving a simple "main" which is only concerned with CLI flags and other command line perks.

Note that the changes are minimal, and only functions affected by the split of code between main and the package are really affected. The rest is code copied to another package.

Other changes included:

- Flag fields needed to become public, and this are upper case now.
- There is a new NewConfig() function now.
- VERSION handling is handled by main completely and is out of the Flags struct now.

This change does not yet address shaping the kubeseal package code look like a proper library.
  • Loading branch information
josvaz authored Sep 2, 2022
1 parent a0195bd commit 1a59a30
Show file tree
Hide file tree
Showing 4 changed files with 1,843 additions and 1,822 deletions.
Loading

0 comments on commit 1a59a30

Please sign in to comment.