Current section
Files
Jump to
Current section
Files
src/generate_password_app.erl
% Copyright (C) 2016-2019 Olivier Boudeville
%
% Module defined in order to be able to test the password generation services
% outside of an escript context.
%
% Author: Olivier Boudeville [olivier (dot) boudeville (at) esperide (dot) com]
%
% Released as LGPL software.
-module(generate_password_app).
-export([ exec/0 ]).
% For update_code_path_for_myriad/0 and all:
-include("myriad_script_include.hrl").
% Runs the merge service, directly from a module, hence with proper debug
% support.
%
-spec exec() -> void().
exec() ->
% First, enable all possible helper code (hence to be done first of all):
update_code_path_for_myriad_from_module(),
% To force options for testing:
%ArgTable = executable_utils:generate_argument_table( "--interactive" ),
%ArgTable = executable_utils:generate_argument_table( "-i" ),
%ArgTable = executable_utils:generate_argument_table( "-i --unexpected" ),
%ArgTable = executable_utils:generate_argument_table( "" ),
ArgTable = executable_utils:get_argument_table(),
password_generation:main( ArgTable ).