mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-24 07:09:42 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
namespace SabreTools.Data.Models.WiseInstaller.Actions
|
|
{
|
|
/// <summary>
|
|
/// Insert Line Into Text File
|
|
///
|
|
/// This action edits a text file on the destination computer. Use it to edit configuration files
|
|
/// that cannot be edited by Edit INI File, Add Device to System.ini, Add Command to
|
|
/// Config.sys, or Add Command to Autoexec.bat.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This action is called through Call DLL Function and is mapped to "f25".
|
|
/// </remarks>
|
|
/// <see href="https://www.manualslib.com/manual/404969/Symantec-Wisescript-Editor-8-0-Reference-For-Wise-Package-Studio-V1-0.html"/>
|
|
public class InsertLineIntoTextFile : FunctionData
|
|
{
|
|
/// <summary>
|
|
/// Flags from the argument data
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Encoded as a string, binary representation in script file.
|
|
/// Expected flags:
|
|
/// - Case Sensitive (0x01)
|
|
/// - Insert Action (unknown)
|
|
/// - Match Criteria (unknown)
|
|
/// - Ignore White Space (unknown)
|
|
/// - Make Backup File (unknown)
|
|
/// </remarks>
|
|
public byte DataFlags { get; set; }
|
|
|
|
/// <summary>
|
|
/// Full path to the text file to edit
|
|
/// </summary>
|
|
public string? FileToEdit { get; set; }
|
|
|
|
/// <summary>
|
|
/// Text to insert into the file
|
|
/// </summary>
|
|
public string? TextToInsert { get; set; }
|
|
|
|
/// <summary>
|
|
/// Search for Text
|
|
/// </summary>
|
|
public string? SearchForText { get; set; }
|
|
|
|
/// <summary>
|
|
/// Comment Text
|
|
/// </summary>
|
|
public string? CommentText { get; set; }
|
|
|
|
/// <summary>
|
|
/// Line number to insert text at, 0 for append to end
|
|
/// </summary>
|
|
public int LineNumber { get; set; }
|
|
}
|
|
}
|