forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugCommand.h
More file actions
62 lines (47 loc) · 2.08 KB
/
Copy pathDebugCommand.h
File metadata and controls
62 lines (47 loc) · 2.08 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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "Command.h"
#if _DEBUG
namespace AppInstaller::CLI
{
// Command that is only available with debug builds to aid development.
// Don't create localized strings for use here.
struct DebugCommand final : public Command
{
DebugCommand(std::string_view parent) : Command("debug", {}, parent, Visibility::Hidden) {}
std::vector<std::unique_ptr<Command>> GetCommands() const override;
Resource::LocString ShortDescription() const override;
Resource::LocString LongDescription() const override;
protected:
void ExecuteInternal(Execution::Context& context) const override;
};
// Outputs the proxy stub registrations for the manifest.
struct DumpProxyStubRegistrationsCommand final : public Command
{
DumpProxyStubRegistrationsCommand(std::string_view parent) : Command("dump-proxystub-reg", {}, parent) {}
Resource::LocString ShortDescription() const override;
Resource::LocString LongDescription() const override;
protected:
void ExecuteInternal(Execution::Context& context) const override;
};
// Outputs some IIDs.
struct DumpInterestingIIDsCommand final : public Command
{
DumpInterestingIIDsCommand(std::string_view parent) : Command("dump-iids", {}, parent) {}
Resource::LocString ShortDescription() const override;
Resource::LocString LongDescription() const override;
protected:
void ExecuteInternal(Execution::Context& context) const override;
};
// Outputs the errors as resources.
struct DumpErrorResourceCommand final : public Command
{
DumpErrorResourceCommand(std::string_view parent) : Command("dump-error-resource", {}, parent) {}
Resource::LocString ShortDescription() const override;
Resource::LocString LongDescription() const override;
protected:
void ExecuteInternal(Execution::Context& context) const override;
};
}
#endif