3cf7677d17
As mentioned in https://github.com/microsoft/terminal/issues/9354#issuecomment-790034728 `GETSET_SETTING` is too visually similar to `GETSET_PROPERTY`, but with a _VERY_ different meaning. I think that merely changing the name of the macro would make it harder for us to make this mistake again.
25 lines
635 B
C++
25 lines
635 B
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#pragma once
|
|
|
|
#include "PaletteItem.h"
|
|
#include "CommandLinePaletteItem.g.h"
|
|
#include "inc/cppwinrt_utils.h"
|
|
|
|
namespace winrt::TerminalApp::implementation
|
|
{
|
|
struct CommandLinePaletteItem : CommandLinePaletteItemT<CommandLinePaletteItem, PaletteItem>
|
|
{
|
|
CommandLinePaletteItem() = default;
|
|
CommandLinePaletteItem(winrt::hstring const& commandLine);
|
|
|
|
WINRT_PROPERTY(winrt::hstring, CommandLine);
|
|
};
|
|
}
|
|
|
|
namespace winrt::TerminalApp::factory_implementation
|
|
{
|
|
BASIC_FACTORY(CommandLinePaletteItem);
|
|
}
|