Weat v0.1.0-dev Weat.Config View Source

Initialize program configurations.

Link to this section Summary

Link to this section Functions

Link to this function

get_config(args \\ [], path \\ Application.get_env(:weat, :conf_file_path)) View Source
get_config(list(), String.t()) :: map()

Build configurations and return it.

Param

args: command line argument list

path: path to config file, default: ~/.weatrc

Return

Return map %Config{}