mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move Console to a separate repository.
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -7,3 +7,6 @@
|
||||
[submodule "DiscImageChef.CommonTypes"]
|
||||
path = DiscImageChef.CommonTypes
|
||||
url = git@github.com:discimagechef/DiscImageChef.CommonTypes.git
|
||||
[submodule "DiscImageChef.Console"]
|
||||
path = DiscImageChef.Console
|
||||
url = git@github.com:discimagechef/DiscImageChef.Console.git
|
||||
|
||||
17
.idea/.idea.DiscImageChef/.idea/contentModel.xml
generated
17
.idea/.idea.DiscImageChef/.idea/contentModel.xml
generated
@@ -98,6 +98,7 @@
|
||||
</e>
|
||||
<e p="DiscImageChef.CommonTypes" t="IncludeRecursive">
|
||||
<e p=".git" t="Include" />
|
||||
<e p=".gitignore" t="Include" />
|
||||
<e p="DiscImageChef.CommonTypes.csproj" t="IncludeRecursive" />
|
||||
<e p="Enums" t="Include">
|
||||
<e p="DeviceType.cs" t="Include" />
|
||||
@@ -188,22 +189,12 @@
|
||||
</e>
|
||||
</e>
|
||||
<e p="DiscImageChef.Console" t="IncludeRecursive">
|
||||
<e p=".git" t="Include" />
|
||||
<e p=".gitignore" t="Include" />
|
||||
<e p="DicConsole.cs" t="Include" />
|
||||
<e p="DiscImageChef.Console.csproj" t="IncludeRecursive" />
|
||||
<e p="bin" t="ExcludeRecursive" />
|
||||
<e p="obj" t="ExcludeRecursive">
|
||||
<e p="Debug" t="Include">
|
||||
<e p="net461" t="Include">
|
||||
<e p="DiscImageChef.Console.AssemblyInfo.cs" t="Include" />
|
||||
</e>
|
||||
<e p="netcoreapp2.0" t="Include">
|
||||
<e p="DiscImageChef.Console.AssemblyInfo.cs" t="Include" />
|
||||
</e>
|
||||
<e p="netstandard2.0" t="Include">
|
||||
<e p="DiscImageChef.Console.AssemblyInfo.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
</e>
|
||||
<e p="obj" t="ExcludeRecursive" />
|
||||
</e>
|
||||
<e p="DiscImageChef.Core" t="IncludeRecursive">
|
||||
<e p="Benchmark.cs" t="Include" />
|
||||
|
||||
1
DiscImageChef.Console
Submodule
1
DiscImageChef.Console
Submodule
Submodule DiscImageChef.Console added at 9ba23c5700
@@ -1,171 +0,0 @@
|
||||
// /***************************************************************************
|
||||
// The Disc Image Chef
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// Filename : DicConsole.cs
|
||||
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||
//
|
||||
// Component : Console.
|
||||
//
|
||||
// --[ Description ] ----------------------------------------------------------
|
||||
//
|
||||
// Handlers for normal, verbose and debug consoles.
|
||||
//
|
||||
// --[ License ] --------------------------------------------------------------
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; either version 2.1 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright © 2011-2019 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace DiscImageChef.Console
|
||||
{
|
||||
public delegate void WriteLineHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void ErrorWriteLineHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void VerboseWriteLineHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void DebugWriteLineHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void WriteHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void ErrorWriteHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void VerboseWriteHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void DebugWriteHandler(string format, params object[] arg);
|
||||
|
||||
public delegate void DebugWithModuleWriteLineHandler(string module, string format, params object[] arg);
|
||||
|
||||
/// <summary>
|
||||
/// Implements a console abstraction that defines four level of messages that can be routed to different consoles:
|
||||
/// standard, error, verbose and debug.
|
||||
/// </summary>
|
||||
public static class DicConsole
|
||||
{
|
||||
public static event WriteLineHandler WriteLineEvent;
|
||||
public static event ErrorWriteLineHandler ErrorWriteLineEvent;
|
||||
public static event VerboseWriteLineHandler VerboseWriteLineEvent;
|
||||
public static event DebugWriteLineHandler DebugWriteLineEvent;
|
||||
public static event DebugWithModuleWriteLineHandler DebugWithModuleWriteLineEvent;
|
||||
|
||||
public static event WriteHandler WriteEvent;
|
||||
public static event ErrorWriteHandler ErrorWriteEvent;
|
||||
public static event VerboseWriteHandler VerboseWriteEvent;
|
||||
public static event DebugWriteHandler DebugWriteEvent;
|
||||
|
||||
public static void WriteLine(string format, params object[] arg)
|
||||
{
|
||||
WriteLineEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void ErrorWriteLine(string format, params object[] arg)
|
||||
{
|
||||
ErrorWriteLineEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void VerboseWriteLine(string format, params object[] arg)
|
||||
{
|
||||
VerboseWriteLineEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void DebugWriteLine(string module, string format, params object[] arg)
|
||||
{
|
||||
DebugWriteLineEvent?.Invoke("DEBUG (" + module + "): " + format, arg);
|
||||
DebugWithModuleWriteLineEvent?.Invoke(module, format, arg);
|
||||
}
|
||||
|
||||
public static void WriteLine()
|
||||
{
|
||||
WriteLineEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void ErrorWriteLine()
|
||||
{
|
||||
ErrorWriteLineEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void VerboseWriteLine()
|
||||
{
|
||||
VerboseWriteLineEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void DebugWriteLine()
|
||||
{
|
||||
DebugWriteLineEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void Write(string format, params object[] arg)
|
||||
{
|
||||
WriteEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void ErrorWrite(string format, params object[] arg)
|
||||
{
|
||||
ErrorWriteEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void VerboseWrite(string format, params object[] arg)
|
||||
{
|
||||
VerboseWriteEvent?.Invoke(format, arg);
|
||||
}
|
||||
|
||||
public static void DebugWrite(string module, string format, params object[] arg)
|
||||
{
|
||||
DebugWriteEvent?.Invoke("DEBUG (" + module + "): " + format, arg);
|
||||
}
|
||||
|
||||
public static void Write()
|
||||
{
|
||||
WriteEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void ErrorWrite()
|
||||
{
|
||||
ErrorWriteEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void VerboseWrite()
|
||||
{
|
||||
VerboseWriteEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void DebugWrite()
|
||||
{
|
||||
DebugWriteEvent?.Invoke("", null);
|
||||
}
|
||||
|
||||
public static void WriteLine(string format)
|
||||
{
|
||||
WriteLineEvent?.Invoke("{0}", format);
|
||||
}
|
||||
|
||||
public static void ErrorWriteLine(string format)
|
||||
{
|
||||
ErrorWriteLineEvent?.Invoke("{0}", format);
|
||||
}
|
||||
|
||||
public static void VerboseWriteLine(string format)
|
||||
{
|
||||
VerboseWriteLineEvent?.Invoke("{0}", format);
|
||||
}
|
||||
|
||||
public static void DebugWriteLine(string module, string format)
|
||||
{
|
||||
DebugWriteLineEvent?.Invoke("{0}", "DEBUG (" + module + "): " + format);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{CCAA7AFE-C094-4D82-A66D-630DE8A3F545}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>DiscImageChef.Console</RootNamespace>
|
||||
<AssemblyName>DiscImageChef.Console</AssemblyName>
|
||||
<ReleaseVersion>$(Version)</ReleaseVersion>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
||||
<Version>4.5.99.1693</Version>
|
||||
<Company>Claunia.com</Company>
|
||||
<Copyright>Copyright © 2011-2019 Natalia Portillo</Copyright>
|
||||
<Product>The Disc Image Chef</Product>
|
||||
<Title>DiscImageChef.Console</Title>
|
||||
<ApplicationVersion>$(Version)</ApplicationVersion>
|
||||
<TargetFrameworks>net461;netstandard2.0;netcoreapp2.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<NrtRevisionFormat>$(Version)-{chash:8} built by {mname} in $(Configuration){!:, modified}</NrtRevisionFormat>
|
||||
<NrtResolveSimpleAttributes>true</NrtResolveSimpleAttributes>
|
||||
<NrtShowRevision>true</NrtShowRevision>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DicConsole.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="..\LICENSE.LGPL">
|
||||
<Link>LICENSE.LGPL</Link>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Unclassified.NetRevisionTask" Version="0.3.0" />
|
||||
</ItemGroup>
|
||||
<ProjectExtensions>
|
||||
<MonoDevelop>
|
||||
<Properties>
|
||||
<Policies>
|
||||
<StandardHeader IncludeInNewFiles="True" Text="/***************************************************************************
The Disc Image Chef
----------------------------------------------------------------------------
 
Filename : ${FileName}
Author(s) : ${AuthorName} <${AuthorEmail}>

Component : Component
 
--[ Description ] ----------------------------------------------------------
 
 Description
 
--[ License ] --------------------------------------------------------------
 
 This library is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as
 published by the Free Software Foundation; either version 2.1 of the
 License, or (at your option) any later version.

 This library is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, see <http://www.gnu.org/licenses/>.

----------------------------------------------------------------------------
Copyright © 2011-${Year} ${CopyrightHolder}
****************************************************************************/" />
|
||||
<TextStylePolicy FileWidth="120" TabWidth="4" IndentWidth="4" RemoveTrailingWhitespace="True" NoTabsAfterNonTabs="False" EolMarker="Native" TabsToSpaces="True" scope="text/x-csharp" />
|
||||
<CSharpFormattingPolicy IndentBlock="True" IndentBraces="False" IndentSwitchSection="True" IndentSwitchCaseSection="True" LabelPositioning="OneLess" NewLinesForBracesInTypes="True" NewLinesForBracesInMethods="True" NewLinesForBracesInProperties="True" NewLinesForBracesInAccessors="True" NewLinesForBracesInAnonymousMethods="True" NewLinesForBracesInControlBlocks="True" NewLinesForBracesInAnonymousTypes="True" NewLinesForBracesInObjectCollectionArrayInitializers="True" NewLinesForBracesInLambdaExpressionBody="True" NewLineForElse="True" NewLineForCatch="True" NewLineForFinally="True" NewLineForMembersInObjectInit="True" NewLineForMembersInAnonymousTypes="True" NewLineForClausesInQuery="True" SpacingAfterMethodDeclarationName="False" SpaceWithinMethodDeclarationParenthesis="False" SpaceBetweenEmptyMethodDeclarationParentheses="False" SpaceAfterMethodCallName="False" SpaceWithinMethodCallParentheses="False" SpaceBetweenEmptyMethodCallParentheses="False" SpaceWithinExpressionParentheses="False" SpaceWithinCastParentheses="False" SpaceWithinOtherParentheses="False" SpaceAfterCast="False" SpacesIgnoreAroundVariableDeclaration="False" SpaceBeforeOpenSquareBracket="False" SpaceBetweenEmptySquareBrackets="False" SpaceWithinSquareBrackets="False" SpaceAfterColonInBaseTypeDeclaration="True" SpaceAfterComma="True" SpaceAfterDot="False" SpaceAfterSemicolonsInForStatement="True" SpaceBeforeColonInBaseTypeDeclaration="True" SpaceBeforeComma="False" SpaceBeforeDot="False" SpaceBeforeSemicolonsInForStatement="False" SpacingAroundBinaryOperator="Single" WrappingPreserveSingleLine="True" WrappingKeepStatementsOnSingleLine="True" PlaceSystemDirectiveFirst="True" SpaceAfterControlFlowStatementKeyword="False" scope="text/x-csharp" />
|
||||
</Policies>
|
||||
</Properties>
|
||||
</MonoDevelop>
|
||||
</ProjectExtensions>
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">
|
||||
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on Mono using 'dotnet build' you -->
|
||||
<!-- have to teach MSBuild where the Mono copy of the reference asssemblies is -->
|
||||
<!-- Look in the standard install locations -->
|
||||
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND EXISTS('/Library/Frameworks/Mono.framework/Versions/Current/lib/mono')">/Library/Frameworks/Mono.framework/Versions/Current/lib/mono</BaseFrameworkPathOverrideForMono>
|
||||
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND EXISTS('/usr/lib/mono')">/usr/lib/mono</BaseFrameworkPathOverrideForMono>
|
||||
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND EXISTS('/usr/local/lib/mono')">/usr/local/lib/mono</BaseFrameworkPathOverrideForMono>
|
||||
<!-- If we found Mono reference assemblies, then use them -->
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net40'">$(BaseFrameworkPathOverrideForMono)/4.0-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net45'">$(BaseFrameworkPathOverrideForMono)/4.5-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net451'">$(BaseFrameworkPathOverrideForMono)/4.5.1-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net452'">$(BaseFrameworkPathOverrideForMono)/4.5.2-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net46'">$(BaseFrameworkPathOverrideForMono)/4.6-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net461'">$(BaseFrameworkPathOverrideForMono)/4.6.1-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net462'">$(BaseFrameworkPathOverrideForMono)/4.6.2-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net47'">$(BaseFrameworkPathOverrideForMono)/4.7-api</FrameworkPathOverride>
|
||||
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net471'">$(BaseFrameworkPathOverrideForMono)/4.7.1-api</FrameworkPathOverride>
|
||||
<EnableFrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">true</EnableFrameworkPathOverride>
|
||||
<!-- Add the Facades directory. Not sure how else to do this. Necessary at least for .NET 4.5 -->
|
||||
<AssemblySearchPaths Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">$(FrameworkPathOverride)/Facades;$(AssemblySearchPaths)</AssemblySearchPaths>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user