fpm_settings Module

Manages global settings which are defined in the global config file.



Variables

Type Visibility Attributes Name Initial
character(len=*), public, parameter :: official_registry_base_url = 'https://fpm-registry.vercel.app'

Derived Types

type, public ::  fpm_global_settings

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: config_file_name

Name of the global config file. The default is config.toml.

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.

Type-Bound Procedures

procedure, public :: full_path
procedure, public :: has_custom_location
procedure, public :: path_to_config_folder_or_empty

Subroutines

public subroutine get_global_settings(global_settings, error)

Obtain global settings from the global config file.

Arguments

Type IntentOptional 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.

public subroutine get_registry_settings(table, global_settings, error)

Read registry settings from the global config file.

Arguments

Type IntentOptional 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.