Updated implementation, and added a Windows .bat example. Instead of using stdin the result is now written to a file, as Windows has some issues with reading stdin from a script. git-svn-id: https://duplicati.googlecode.com/svn/trunk@1427 59da171f-624f-0410-aa54-27559c288bec
190 lines
7.7 KiB
C#
190 lines
7.7 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.544
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Duplicati.Library.Modules.Builtin.Strings {
|
|
using System;
|
|
|
|
|
|
/// <summary>
|
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
|
/// </summary>
|
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
|
// class via a tool like ResGen or Visual Studio.
|
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
|
// with the /str option, or rebuild your VS project.
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
internal class RunScript {
|
|
|
|
private static global::System.Resources.ResourceManager resourceMan;
|
|
|
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
|
|
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
internal RunScript() {
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the cached ResourceManager instance used by this class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
|
get {
|
|
if (object.ReferenceEquals(resourceMan, null)) {
|
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Duplicati.Library.Modules.Builtin.Strings.RunScript", typeof(RunScript).Assembly);
|
|
resourceMan = temp;
|
|
}
|
|
return resourceMan;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Overrides the current thread's CurrentUICulture property for all
|
|
/// resource lookups using this strongly typed resource class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
internal static global::System.Globalization.CultureInfo Culture {
|
|
get {
|
|
return resourceCulture;
|
|
}
|
|
set {
|
|
resourceCulture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Executes a script before starting an operation, and again on completion.
|
|
/// </summary>
|
|
internal static string Description {
|
|
get {
|
|
return ResourceManager.GetString("Description", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Run script.
|
|
/// </summary>
|
|
internal static string DisplayName {
|
|
get {
|
|
return ResourceManager.GetString("DisplayName", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Executes a script after performing an operation. The script will receive the operation results written to stdout..
|
|
/// </summary>
|
|
internal static string FinishoptionLong {
|
|
get {
|
|
return ResourceManager.GetString("FinishoptionLong", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Run a script on exit.
|
|
/// </summary>
|
|
internal static string FinishoptionShort {
|
|
get {
|
|
return ResourceManager.GetString("FinishoptionShort", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to The script "{0}" returned with exit code {1}.
|
|
/// </summary>
|
|
internal static string InvalidExitCodeError {
|
|
get {
|
|
return ResourceManager.GetString("InvalidExitCodeError", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Executes a script before performing an operation. The operation will block until the script has completed or timed out. If the script returns a non-zero error code or times out, the operation will be aborted..
|
|
/// </summary>
|
|
internal static string RequiredoptionLong {
|
|
get {
|
|
return ResourceManager.GetString("RequiredoptionLong", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Run a required script on startup.
|
|
/// </summary>
|
|
internal static string RequiredoptionShort {
|
|
get {
|
|
return ResourceManager.GetString("RequiredoptionShort", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Error while executing script "{0}": {1}.
|
|
/// </summary>
|
|
internal static string ScriptExecuteError {
|
|
get {
|
|
return ResourceManager.GetString("ScriptExecuteError", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Execution of the script "{0}" timed out.
|
|
/// </summary>
|
|
internal static string ScriptTimeoutError {
|
|
get {
|
|
return ResourceManager.GetString("ScriptTimeoutError", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Executes a script before performing an operation. The operation will block until the script has completed or timed out..
|
|
/// </summary>
|
|
internal static string StartupoptionLong {
|
|
get {
|
|
return ResourceManager.GetString("StartupoptionLong", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Run a script on startup.
|
|
/// </summary>
|
|
internal static string StartupoptionShort {
|
|
get {
|
|
return ResourceManager.GetString("StartupoptionShort", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to The script "{0}" reported error messages: {1}.
|
|
/// </summary>
|
|
internal static string StdErrorReport {
|
|
get {
|
|
return ResourceManager.GetString("StdErrorReport", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Sets the maximum time a script is allowed to execute. If the script has not completed within this time, it will continue to execute but the operation will continue too, and no script output will be processed..
|
|
/// </summary>
|
|
internal static string TimeoutoptionLong {
|
|
get {
|
|
return ResourceManager.GetString("TimeoutoptionLong", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Sets the script timeout.
|
|
/// </summary>
|
|
internal static string TimeoutoptionShort {
|
|
get {
|
|
return ResourceManager.GetString("TimeoutoptionShort", resourceCulture);
|
|
}
|
|
}
|
|
}
|
|
}
|