SourceFlow.h (2698B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "Command.h" 5 #include "ExecutionContext.h" 6 7 namespace AppInstaller::CLI::Workflow 8 { 9 // Gets the current source list. 10 // Required Args: None 11 // Inputs: None 12 // Outputs: SourceList 13 void GetSourceList(Execution::Context& context); 14 15 // Gets the source list, filtering it if SourceName is present. 16 // Required Args: None 17 // Inputs: None 18 // Outputs: SourceList 19 void GetSourceListWithFilter(Execution::Context& context); 20 21 // Checks the source list against the inputs to ensure a successful add after this. 22 // Required Args: SourceName, SourceArg 23 // Inputs: SourceList 24 // Outputs: None 25 void CheckSourceListAgainstAdd(Execution::Context& context); 26 27 // Adds the source. 28 // Required Args: SourceName, SourceArg 29 // Inputs: None 30 // Outputs: None 31 void AddSource(Execution::Context& context); 32 33 // Opens a source before source add command. 34 // Required Args: SourceName, SourceArg 35 // Inputs: None 36 // Outputs: Source 37 void CreateSourceForSourceAdd(Execution::Context& context); 38 39 // Lists the sources in SourceList. 40 // Required Args: None 41 // Inputs: SourceList 42 // Outputs: None 43 void ListSources(Execution::Context& context); 44 45 // Updates the sources in SourceList. 46 // Required Args: None 47 // Inputs: SourceList 48 // Outputs: None 49 void UpdateSources(Execution::Context& context); 50 51 // Removes the sources in SourceList. 52 // Required Args: None 53 // Inputs: SourceList 54 // Outputs: None 55 void RemoveSources(Execution::Context& context); 56 57 // Asks the user if they are ok with dropping the sources in SourceList. 58 // Required Args: None 59 // Inputs: SourceList 60 // Outputs: None 61 void QueryUserForSourceReset(Execution::Context& context); 62 63 // Drops the sources in SourceList. 64 // Required Args: None 65 // Inputs: SourceList 66 // Outputs: None 67 void ResetSourceList(Execution::Context& context); 68 69 // Drops all sources. 70 // Required Args: None 71 // Inputs: None 72 // Outputs: None 73 void ResetAllSources(Execution::Context& context); 74 75 // Lists the sources in SourceList in a format appropriate for using in Group Policy 76 // Required Args: None 77 // Inputs: SourceList 78 // Outputs: None 79 void ExportSourceList(Execution::Context& context); 80 81 // Forces an update to the cache of installed packages. 82 // Required Args: None 83 // Inputs: None 84 // Outputs: None 85 void ForceInstalledCacheUpdate(Execution::Context& context); 86 }