Skip to content
ConsoleMonster
Class

ChangePreviewOptionsFluent

ConsoleMonster.Changes

Namespace
ConsoleMonster.Changes
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of ChangePreviewOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • ChangePreviewOptionsFluent

Methods

Interactive 2 overloads
public static ChangePreviewOptions Interactive(ChangePreviewOptions changePreviewOptions, InteractiveOptions? value) #

Sets ChangePreviewOptions.Interactive: Prompt options (input, target, labels), or null for the defaults.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value ConsoleMonster.Interactive.InteractiveOptions? required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Interactive = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().Interactive(value);
public static ChangePreviewOptions Interactive(ChangePreviewOptions changePreviewOptions, Action<InteractiveOptions> configure) #

Configures ChangePreviewOptions.Interactive in place (creating it when not set): Prompt options (input, target, labels), or null for the defaults.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.InteractiveOptions> required
Configures the value.

Returns

ChangePreviewOptions The same instance.
public static ChangePreviewOptions Mode(ChangePreviewOptions changePreviewOptions, ChangeViewMode value) #

Sets ChangePreviewOptions.Mode: The view of the changes (default ChangeViewMode.Full).

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value ConsoleMonster.Changes.ChangeViewMode required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Mode = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().Mode(value);
public static ChangePreviewOptions Question(ChangePreviewOptions changePreviewOptions, string? value) #

Sets ChangePreviewOptions.Question: The question, or null for "Apply these changes?" in the current language.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value string? required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Question = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().Question(value);
public static ChangePreviewOptions Title(ChangePreviewOptions changePreviewOptions, string? value) #

Sets ChangePreviewOptions.Title: A title above the preview (markup), or null.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value string? required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Title = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().Title(value);
public static ChangePreviewOptions TypedConfirmation(ChangePreviewOptions changePreviewOptions, string? value) #

Sets ChangePreviewOptions.TypedConfirmation: Text the user must type to confirm (for example a server name), or null.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value string? required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { TypedConfirmation = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().TypedConfirmation(value);
TypedWhenDestructive 2 overloads
public static ChangePreviewOptions TypedWhenDestructive(ChangePreviewOptions changePreviewOptions, bool value) #

Sets ChangePreviewOptions.TypedWhenDestructive: Whether changes that remove objects need a typed confirmation when ChangePreviewOptions.TypedConfirmation is not set: the user types the number of removals (default true).

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance.
value bool required
The value.

Returns

ChangePreviewOptions The same instance.

Examples

// C# initializer or property                                                                // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { TypedWhenDestructive = value };    Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().TypedWhenDestructive(value);
public static ChangePreviewOptions TypedWhenDestructive(ChangePreviewOptions changePreviewOptions) #

Sets ChangePreviewOptions.TypedWhenDestructive to true.

Parameters

changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions required
The instance to configure.

Returns

ChangePreviewOptions The same instance.