Class
PromptThemeImport
ConsoleMonster.Prompts
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.
Returned or exposed by 2
Methods
public static PromptThemeImport FromOhMyPosh(string json, string name) #Reads an oh-my-posh JSON theme.
Parameters
- json string
- The theme JSON.
- name string
- The name for the resulting prompt theme.
Returns
PromptThemeImportExceptions
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
- A .json file, such as theme.omp.json.
Returns
PromptThemeImportInherited Methods
Properties
public IReadOnlyList<string> Notes { get; } #One line for each part of the source that was left out or approximated.