%% @doc %% cfclient application. %% @end -module(cfclient_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ApiKey = application:get_env(cfclient, api_key, undefined), Config = application:get_env(cfclient, config, []), StartDefaultInstance = application:get_env(cfclient, start_default_instance, true), cfclient_sup:start_link([{api_key, ApiKey}, {config, Config}, {start_default_instance, StartDefaultInstance}]). stop(_State) -> ok.