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