hsftp-1.4.0: A SFTP client tool for secure file transfer operations
Copyright(c) IOcrafts 2024-present
LicenseBSD
MaintainerMaurizio Dusi
Stabilitystable
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Config

Description

This module parses a YAML file with configuration options.

Example of conf.yaml:

    remote:
        hostname: sftp.domain.com
        port: 22
        username: username
        password: password
        known_hosts: /home/user/.ssh/known_hosts
Synopsis

Documentation

data Config Source #

Represents the configuration settings for the application.

Constructors

Config 

Fields

Instances

Instances details
Show Config Source # 
Instance details

Defined in Config

mkConfig :: YamlConfig -> IO Config Source #

Create a Config from a YamlConfig.

This function takes a YamlConfig and extracts the necessary fields to create a Config object. It returns an IO action that produces the resulting Config.