winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

ManifestYamlWriter.h (976B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include <winget/Manifest.h>
      5 #include <winget/Yaml.h>
      6 
      7 namespace AppInstaller::Manifest::YamlWriter
      8 {
      9     /// <summary>
     10     /// Converts the manifest and a single installer to a yaml string.
     11     /// </summary>
     12     /// <param name="manifest">Manifest object.</param>
     13     /// <param name="installer">Manifest installer object.</param>
     14     /// <returns>Yaml string.</returns>
     15     std::string ManifestToYamlString(const Manifest& manifest, const ManifestInstaller& installer);
     16 
     17     /// <summary>
     18     /// Exports the manifest and single manifest installer to a yaml file.
     19     /// </summary>
     20     /// <param name="manifest">Manifest object.</param>
     21     /// <param name="installer">Manifest installer object.</param>
     22     /// <param name="out">Path of the yaml file.</param>
     23     void OutputYamlFile(const Manifest& manifest, const ManifestInstaller& installer, const std::filesystem::path& out);
     24 }