Skip to content
ConsoleMonster
Class

PromptThemeImport

ConsoleMonster.Prompts

Namespace
ConsoleMonster.Prompts
Assembly
ConsoleMonster
Modifiers
sealed

A prompt theme read from another prompt tool's file, with notes on what could not be carried over.

Inheritance

  • object
  • PromptThemeImport

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public static PromptThemeImport FromOhMyPosh(string json, string name) #

Reads an oh-my-posh JSON theme.

Parameters

json string required
The theme JSON.
name string required
The name for the resulting prompt theme.

Exceptions

  • FormatException – The JSON is invalid or has no prompt blocks.
public static PromptThemeImport LoadOhMyPosh(string path) #

Reads an oh-my-posh JSON theme file. The prompt theme is named after the file.

Parameters

path string required
A .json file, such as theme.omp.json.

Properties

public PromptThemeFile Theme { get; } #

The resulting prompt theme.

public IReadOnlyList<string> Notes { get; } #

One line for each part of the source that was left out or approximated.