ImportExportFlow.h (1591B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "ExecutionContext.h" 5 6 namespace AppInstaller::CLI::Workflow 7 { 8 // Selects the package versions to list on the exported file 9 // Required Args: None 10 // Inputs: SearchResult 11 // Outputs: PackageCollection 12 void SelectVersionsToExport(Execution::Context& context); 13 14 // Exports a collection of packages to a JSON import file 15 // Required Args: OutputFile 16 // Inputs: PackageCollection 17 // Outputs: None 18 void WriteImportFile(Execution::Context& context); 19 20 // Reads the contents of an import file 21 // Required Args: ImportFile 22 // Inputs: None 23 // Outputs: PackageCollection 24 void ReadImportFile(Execution::Context& context); 25 26 // Opens the sources specified in an import file 27 // Required Args: None 28 // Inputs: PackageCollection 29 // Outputs: Sources 30 void OpenSourcesForImport(Execution::Context& context); 31 32 // Create the search requests and install sub-contexts for all the imported packages. 33 // Needs the sources for all packages and the installed source 34 // Required Args: None 35 // Inputs: PackageCollection, Sources, Source 36 // Outputs: PackageSubContexts 37 // SubContext Inputs: None 38 // SubContext Outputs: Source, SearchRequest 39 void GetSearchRequestsForImport(Execution::Context& context); 40 41 // Installs all the packages found in the import file. 42 // Required Args: None 43 // Inputs: PackageSubContexts 44 // Outputs: None 45 void InstallImportedPackages(Execution::Context& context); 46 }