Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
(GH-342) Add config_processor package
Browse files Browse the repository at this point in the history
Prior to this commit, the only implementation of an interface
for the ConfigProcessor lived in the install package; moreover,
this interface only included the ProcessConfig function.

This commit creates a new public package, config_processor, which
contains only a single interface: ConfigProcessorI.

This interface includes both the ProcessConfig function and the new
CheckConfig function. This will allow external libraries/tools  to
re-use our code so long as they implement a processor for their own
needs which can perform those tasks.

This commit does **not** implement or otherwise alter the private
configuration processor (pct_config_processor) or any other files.
  • Loading branch information
michaeltlombardi committed Feb 11, 2022
1 parent cb284e6 commit 19aaa80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config_processor/config_processor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package config_processor

type ConfigProcessorI interface {
ProcessConfig(sourceDir, targetDir string, force bool) (string, error)
CheckConfig(configFile string) error
}

0 comments on commit 19aaa80

Please sign in to comment.