.toml 拡張子の設定ファイルを読み込み、既存値へ上書き適用する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | path |
読み込む設定ファイルパス( |
||
| type(app_config), | intent(inout) | :: | cfg |
読み込み結果で上書きするアプリ設定。 |
subroutine load_app_config(path, cfg) character(len=*), intent(in) :: path type(app_config), intent(inout) :: cfg if (.not. ends_with(lower_ascii(trim(path)), '.toml')) then error stop 'Only TOML config is supported. Please pass a .toml file.' end if call load_toml_config(path, cfg) end subroutine load_app_config