-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cc0c0e
commit 2ec2d94
Showing
3 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@startuml | ||
actor User as user | ||
participant main | ||
participant config | ||
participant domain | ||
participant "github.com/spf13/viper" as viper | ||
participant "github.com/spf13/cobra" as cobra | ||
participant "golang.org/x/text/language" as language | ||
|
||
user -> main : Execute application | ||
main -> config : LoadConfig() | ||
activate config | ||
|
||
config -> domain : InitializeDefaults() | ||
activate domain | ||
domain --> config : Return default MinionConfig | ||
deactivate domain | ||
|
||
config -> cobra : Parse CLI flags (--file, --source, --language, etc.) | ||
activate cobra | ||
cobra --> config : CLI flag values | ||
deactivate cobra | ||
|
||
config -> config : Determine config file path\n(either --file or pdfminion.cfg) | ||
config -> viper : Read config file | ||
activate viper | ||
viper --> config : Parsed config values | ||
deactivate viper | ||
|
||
config -> language : Parse language tag (if applicable) | ||
activate language | ||
language --> config : Parsed language.Tag | ||
deactivate language | ||
|
||
config --> main : Final merged MinionConfig | ||
deactivate config | ||
|
||
main -> domain : Use MinionConfig for application logic | ||
@enduml |