/**************************************************************************** ** Copyright (c) 2022, Fougue Ltd. ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #pragma once #include "../base/application_ptr.h" #include "../base/filepath.h" #include "../base/span.h" #include namespace Mayo { // Contains arguments for the cli_asyncExportDocuments() function struct CliExportArgs { bool progressReport = true; Span filesToOpen; Span filesToExport; }; // Asynchronously exports input file(s) listed in 'args' // Calls 'fnContinuation' at the end of execution void cli_asyncExportDocuments( const ApplicationPtr& app, const CliExportArgs& args, std::function fnContinuation ); } // namespace Mayo