1using System.Diagnostics;
23 public override string Name =>
"settings";
27 ProcessStartInfo pi =
new ProcessStartInfo
30 UseShellExecute =
true
46 return Task.FromResult(0);
52 return Task.FromResult(1);
58 return Task.FromResult(1);
62 string path = Path.GetFullPath(setting.
SourcePath);
65 return Task.FromResult(0);
69 return Task.FromResult(0);
Exposes the BadScript Runtime Functionality to Consumers.
Wrapper class for the console abstraction.
static void WriteLine(string str)
Writes a string to the console and appends a newline.
Implements a Console System that uses a settings object of Type T.
Prints a specific setting to the console.
BadSettingsSystem(BadRuntime runtime)
Creates a new BadSettingsSystem instance.
void OpenWithDefault(string path)
override Task< int > Run(BadSettingsSystemSettings settings)
Settings for the Settings System.
string Path
Name of the Settings to Display.
Public Api for the Settings System.
BadSettings? FindProperty(string propertyPath)
Finds a property based on the property path relative to this object.
Helper class that can be used to automatically load a settings object from a file.
static BadSettings RootSettings
Returns the Root Settings Object.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.
Contains the 'settings' console command implementation.
Contains the Settings Implementation.