Manages global settings which are defined in the global config file.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | public, | parameter | :: | official_registry_base_url | = | 'https://fpm-registry.vercel.app' |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | config_file_name |
Name of the global config file. The default is |
||
character(len=:), | public, | allocatable | :: | path_to_config_folder |
Path to the global config file excluding the file name. |
||
type(fpm_registry_settings), | public, | allocatable | :: | registry_settings |
Registry configs. |
procedure, public :: full_path | |
procedure, public :: has_custom_location | |
procedure, public :: path_to_config_folder_or_empty |
Obtain global settings from the global config file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fpm_global_settings), | intent(inout) | :: | global_settings |
Global settings to be obtained. |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error reading config file. |
Read registry settings from the global config file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout), | target | :: | table |
The [registry] subtable from the global config file. |
|
type(fpm_global_settings), | intent(inout) | :: | global_settings |
The global settings which can be filled with the registry settings. |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error handling. |