fpm_global_settings Derived Type

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

  • private function full_path(self) result(result)

    The full path to the global config file.

    Arguments

    Type IntentOptional Attributes Name
    class(fpm_global_settings), intent(in) :: self

    Return Value character(len=:), allocatable

procedure, public :: has_custom_location

  • private elemental function has_custom_location(self)

    True if the global config file is not at the default location.

    Arguments

    Type IntentOptional Attributes Name
    class(fpm_global_settings), intent(in) :: self

    Return Value logical

procedure, public :: path_to_config_folder_or_empty

  • private pure function path_to_config_folder_or_empty(self)

    The path to the global config directory.

    Arguments

    Type IntentOptional Attributes Name
    class(fpm_global_settings), intent(in) :: self

    Return Value character(len=:), allocatable