33 lines
769 B
C
33 lines
769 B
C
|
/*++
|
||
|
Copyright (c) Microsoft Corporation
|
||
|
Licensed under the MIT license.
|
||
|
|
||
|
Module Name:
|
||
|
- PowershellCoreProfileGenerator
|
||
|
|
||
|
Abstract:
|
||
|
- This is the dynamic profile generator for PowerShell Core. Checks if pwsh is
|
||
|
installed, and if it is, creates a profile to launch it.
|
||
|
|
||
|
Author(s):
|
||
|
- Mike Griese - August 2019
|
||
|
|
||
|
--*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "IDynamicProfileGenerator.h"
|
||
|
|
||
|
namespace TerminalApp
|
||
|
{
|
||
|
class PowershellCoreProfileGenerator : public TerminalApp::IDynamicProfileGenerator
|
||
|
{
|
||
|
public:
|
||
|
PowershellCoreProfileGenerator() = default;
|
||
|
~PowershellCoreProfileGenerator() = default;
|
||
|
std::wstring_view GetNamespace() override;
|
||
|
|
||
|
std::vector<TerminalApp::Profile> GenerateProfiles() override;
|
||
|
};
|
||
|
};
|