/* This file is part of »mimir«. Copyright 2025 kcf »mimir« is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. »mimir« is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with »mimir«. If not, see . */ namespace _mimir.serialization.files { /** */ export type type_parameters = { path : string; }; /** */ export function execute( parameters : type_parameters, directory : string ) : Array { const result : Array = []; result.push( lib_plankton.string.coin( "tar --create --directory={{path}} . > {{target_path}}", { "path": parameters.path, "target_path": lib_plankton.string.coin( "{{directory}}/files.tar", { "directory": directory, } ), } ) ); return result; } /** */ export function logic( parameters : type_parameters ) : _mimir.serialization.type_logic { return { "execute": (directory) => execute(parameters, directory), }; } }