Skip to content

Commit

Permalink
Rename packages/namespaces from Cathode to Vezel.Cathode.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 8, 2022
1 parent 57ce3b9 commit 680b3f8
Show file tree
Hide file tree
Showing 99 changed files with 204 additions and 216 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
uses: SmartsquareGmbH/[email protected]
with:
names: |
Cathode
Cathode.Analyzers
Cathode.Extensions
Cathode.Hosting
Vezel.Cathode
Vezel.Cathode.Analyzers
Vezel.Cathode.Extensions
Vezel.Cathode.Hosting
keep: 25
12 changes: 6 additions & 6 deletions PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ platforms that .NET 6+ supports.

This project offers the following packages:

* [Cathode](https://www.nuget.org/packages/Cathode): Provides the core terminal
API.
* [Cathode.Analyzers](https://www.nuget.org/packages/Cathode.Analyzers):
* [Vezel.Cathode](https://www.nuget.org/packages/Vezel.Cathode): Provides the
core terminal API.
* [Vezel.Cathode.Analyzers](https://www.nuget.org/packages/Vezel.Cathode.Analyzers):
Provides diagnostic analyzers and source generators.
* [Cathode.Hosting](https://www.nuget.org/packages/Cathode.Hosting): Provides
the terminal hosting model.
* [Cathode.Extensions](https://www.nuget.org/packages/Cathode.Extensions):
* [Vezel.Cathode.Hosting](https://www.nuget.org/packages/Vezel.Cathode.Hosting):
Provides the terminal hosting model.
* [Vezel.Cathode.Extensions](https://www.nuget.org/packages/Vezel.Cathode.Extensions):
Provides terminal hosting and logging for the .NET Generic Host.

See the
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ This project offers the following packages:

| Package | Description | Downloads |
| -: | - | :- |
| [![Cathode][core-img]][core-pkg] | Provides the core terminal API. | ![Downloads][core-dls] |
| [![Cathode.Analyzers][analyzers-img]][analyzers-pkg] | Provides diagnostic analyzers and source generators. | ![Downloads][analyzers-dls] |
| [![Cathode.Hosting][hosting-img]][hosting-pkg] | Provides the terminal hosting model. | ![Downloads][hosting-dls] |
| [![Cathode.Extensions][extensions-img]][extensions-pkg] | Provides terminal hosting and logging for the .NET Generic Host. | ![Downloads][extensions-dls] |

[core-pkg]: https://www.nuget.org/packages/Cathode
[analyzers-pkg]: https://www.nuget.org/packages/Cathode.Analyzers
[hosting-pkg]: https://www.nuget.org/packages/Cathode.Hosting
[extensions-pkg]: https://www.nuget.org/packages/Cathode.Extensions

[core-img]: https://img.shields.io/nuget/v/Cathode?label=Cathode
[analyzers-img]: https://img.shields.io/nuget/v/Cathode.Analyzers?label=Cathode.Analyzers
[hosting-img]: https://img.shields.io/nuget/v/Cathode.Hosting?label=Cathode.Hosting
[extensions-img]: https://img.shields.io/nuget/v/Cathode.Extensions?label=Cathode.Extensions

[core-dls]: https://img.shields.io/nuget/dt/Cathode?label=
[analyzers-dls]: https://img.shields.io/nuget/dt/Cathode.Analyzers?label=
[hosting-dls]: https://img.shields.io/nuget/dt/Cathode.Hosting?label=
[extensions-dls]: https://img.shields.io/nuget/dt/Cathode.Extensions?label=
| [![Vezel.Cathode][core-img]][core-pkg] | Provides the core terminal API. | ![Downloads][core-dls] |
| [![Vezel.Cathode.Analyzers][analyzers-img]][analyzers-pkg] | Provides diagnostic analyzers and source generators. | ![Downloads][analyzers-dls] |
| [![Vezel.Cathode.Hosting][hosting-img]][hosting-pkg] | Provides the terminal hosting model. | ![Downloads][hosting-dls] |
| [![Vezel.Cathode.Extensions][extensions-img]][extensions-pkg] | Provides terminal hosting and logging for the .NET Generic Host. | ![Downloads][extensions-dls] |

[core-pkg]: https://www.nuget.org/packages/Vezel.Cathode
[analyzers-pkg]: https://www.nuget.org/packages/Vezel.Cathode.Analyzers
[hosting-pkg]: https://www.nuget.org/packages/Vezel.Cathode.Hosting
[extensions-pkg]: https://www.nuget.org/packages/Vezel.Cathode.Extensions

[core-img]: https://img.shields.io/nuget/v/Vezel.Cathode?label=Vezel.Cathode
[analyzers-img]: https://img.shields.io/nuget/v/Vezel.Cathode.Analyzers?label=Vezel.Cathode.Analyzers
[hosting-img]: https://img.shields.io/nuget/v/Vezel.Cathode.Hosting?label=Vezel.Cathode.Hosting
[extensions-img]: https://img.shields.io/nuget/v/Vezel.Cathode.Extensions?label=Vezel.Cathode.Extensions

[core-dls]: https://img.shields.io/nuget/dt/Vezel.Cathode?label=
[analyzers-dls]: https://img.shields.io/nuget/dt/Vezel.Cathode.Analyzers?label=
[hosting-dls]: https://img.shields.io/nuget/dt/Vezel.Cathode.Hosting?label=
[extensions-dls]: https://img.shields.io/nuget/dt/Vezel.Cathode.Extensions?label=

To install a package, run `dotnet add package <name>`.

Expand Down
4 changes: 2 additions & 2 deletions src/analyzers/DiagnosticDescriptors.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.CodeAnalysis;

namespace Cathode.Analyzers;
namespace Vezel.Cathode.Analyzers;

static class DiagnosticDescriptors
{
Expand Down Expand Up @@ -47,7 +47,7 @@ static DiagnosticDescriptors()
p.SetValue(
null,
new DiagnosticDescriptor(
$"CATH{id}", attr.Title, attr.Message, "Cathode", attr.Severity, true));
$"CATH{id}", attr.Title, attr.Message, "Vezel.Cathode", attr.Severity, true));

id++;
}
Expand Down
6 changes: 3 additions & 3 deletions src/analyzers/Hosting/EntryPointGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;

namespace Cathode.Analyzers.Hosting;
namespace Vezel.Cathode.Analyzers.Hosting;

[Generator(LanguageNames.CSharp)]
public sealed class EntryPointGenerator : ISourceGenerator
Expand All @@ -17,7 +17,7 @@ public void OnVisitSyntaxNode(GeneratorSyntaxContext context)
{
var sema = context.SemanticModel;

_interface ??= sema.Compilation.GetTypeByMetadataName("Cathode.Hosting.IProgram");
_interface ??= sema.Compilation.GetTypeByMetadataName("Vezel.Cathode.Hosting.IProgram");

if (context.Node is ClassDeclarationSyntax cls)
{
Expand All @@ -37,7 +37,7 @@ static class GeneratedProgram
{{
static async global::System.Threading.Tasks.Task Main(string[] args)
{{
await global::Cathode.Hosting.ProgramHost.RunAsync<{0}>(args);
await global::Vezel.Cathode.Hosting.ProgramHost.RunAsync<{0}>(args);
}}
}}";

Expand Down
6 changes: 3 additions & 3 deletions src/analyzers/analyzers.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Cathode.Analyzers</AssemblyName>
<AssemblyName>Vezel.Cathode.Analyzers</AssemblyName>
<BuildOutputTargetFolder>analyzers/dotnet/cs</BuildOutputTargetFolder>
<DevelopmentDependency>true</DevelopmentDependency>
<IsPackable>true</IsPackable>
Expand All @@ -9,8 +9,8 @@
<PackageDescription>$(PackageDescription)

This package provides diagnostic analyzers and source generators.</PackageDescription>
<PackageId>Cathode.Analyzers</PackageId>
<RootNamespace>Cathode.Analyzers</RootNamespace>
<PackageId>Vezel.Cathode.Analyzers</PackageId>
<RootNamespace>Vezel.Cathode.Analyzers</RootNamespace>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/core/Diagnostics/TerminalTraceListener.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Diagnostics;
namespace Vezel.Cathode.Diagnostics;

public class TerminalTraceListener : TextWriterTraceListener
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/IO/SynchronizedStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Cathode.Threading;
using Vezel.Cathode.Threading;

namespace Cathode.IO;
namespace Vezel.Cathode.IO;

sealed class SynchronizedStream : Stream
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/IO/SynchronizedTextReader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Cathode.Threading;
using Vezel.Cathode.Threading;

namespace Cathode.IO;
namespace Vezel.Cathode.IO;

sealed class SynchronizedTextReader : TextReader
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/IO/SynchronizedTextWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Cathode.Threading;
using Vezel.Cathode.Threading;

namespace Cathode.IO;
namespace Vezel.Cathode.IO;

sealed class SynchronizedTextWriter : TextWriter
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalConfigurationException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public class TerminalConfigurationException : TerminalException
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public class TerminalException : IOException
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalHandle.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public abstract class TerminalHandle
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalInputStream.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public sealed class TerminalInputStream : TerminalStream
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalNotAttachedException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public class TerminalNotAttachedException : TerminalException
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalOutputStream.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public sealed class TerminalOutputStream : TerminalStream
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public abstract class TerminalReader : TerminalHandle
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalStream.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

[SuppressMessage("Performance", "CA1844")]
public abstract class TerminalStream : Stream
Expand Down
2 changes: 1 addition & 1 deletion src/core/IO/TerminalWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.IO;
namespace Vezel.Cathode.IO;

public abstract class TerminalWriter : TerminalHandle
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Processes/ChildProcess.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Processes;
namespace Vezel.Cathode.Processes;

[SuppressMessage("ApiDesign", "RS0030")]
[SuppressMessage("Design", "CA1001")]
Expand Down
2 changes: 1 addition & 1 deletion src/core/Processes/ChildProcessBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Processes;
namespace Vezel.Cathode.Processes;

public sealed class ChildProcessBuilder
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Processes/ChildProcessException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Processes;
namespace Vezel.Cathode.Processes;

public class ChildProcessException : Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Processes/ChildProcessReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Processes;
namespace Vezel.Cathode.Processes;

public sealed class ChildProcessReader
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Processes/ChildProcessWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Processes;
namespace Vezel.Cathode.Processes;

public sealed class ChildProcessWriter
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/SystemVirtualTerminal.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode;
namespace Vezel.Cathode;

public abstract class SystemVirtualTerminal : VirtualTerminal
{
Expand Down
8 changes: 4 additions & 4 deletions src/core/Terminal.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Cathode.Terminals.Unix.Linux;
using Cathode.Terminals.Unix.MacOS;
using Cathode.Terminals.Windows;
using Vezel.Cathode.Terminals.Unix.Linux;
using Vezel.Cathode.Terminals.Unix.MacOS;
using Vezel.Cathode.Terminals.Windows;

namespace Cathode;
namespace Vezel.Cathode;

public static class Terminal
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/TerminalControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Cathode.Threading;
using Vezel.Cathode.Threading;

namespace Cathode;
namespace Vezel.Cathode;

public sealed class TerminalControl
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/TerminalSignal.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode;
namespace Vezel.Cathode;

public enum TerminalSignal
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/TerminalSignalContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode;
namespace Vezel.Cathode;

public sealed class TerminalSignalContext
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/TerminalSize.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode;
namespace Vezel.Cathode;

public readonly struct TerminalSize : IEquatable<TerminalSize>
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Terminals/NativeTerminalReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Terminals;
namespace Vezel.Cathode.Terminals;

abstract class NativeTerminalReader<TTerminal, THandle> : TerminalReader
where TTerminal : NativeVirtualTerminal<THandle>
Expand Down
2 changes: 1 addition & 1 deletion src/core/Terminals/NativeTerminalWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Terminals;
namespace Vezel.Cathode.Terminals;

abstract class NativeTerminalWriter<TTerminal, THandle> : TerminalWriter
where TTerminal : NativeVirtualTerminal<THandle>
Expand Down
2 changes: 1 addition & 1 deletion src/core/Terminals/NativeVirtualTerminal.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Terminals;
namespace Vezel.Cathode.Terminals;

abstract class NativeVirtualTerminal<THandle> : SystemVirtualTerminal
{
Expand Down
10 changes: 5 additions & 5 deletions src/core/Terminals/Unix/Linux/LinuxVirtualTerminal.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Cathode.Unix;
using Cathode.Unix.Linux;
using static Cathode.Unix.Linux.LinuxPInvoke;
using static Cathode.Unix.UnixPInvoke;
using Vezel.Cathode.Unix;
using Vezel.Cathode.Unix.Linux;
using static Vezel.Cathode.Unix.Linux.LinuxPInvoke;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix.Linux;
namespace Vezel.Cathode.Terminals.Unix.Linux;

sealed class LinuxVirtualTerminal : UnixVirtualTerminal
{
Expand Down
10 changes: 5 additions & 5 deletions src/core/Terminals/Unix/MacOS/MacOSVirtualTerminal.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Cathode.Unix;
using Cathode.Unix.MacOS;
using static Cathode.Unix.MacOS.MacOSPInvoke;
using static Cathode.Unix.UnixPInvoke;
using Vezel.Cathode.Unix;
using Vezel.Cathode.Unix.MacOS;
using static Vezel.Cathode.Unix.MacOS.MacOSPInvoke;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix.MacOS;
namespace Vezel.Cathode.Terminals.Unix.MacOS;

sealed class MacOSVirtualTerminal : UnixVirtualTerminal
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Terminals/Unix/PosixSignalGuard.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cathode.Terminals.Unix;
namespace Vezel.Cathode.Terminals.Unix;

sealed class PosixSignalGuard : IDisposable
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/Terminals/Unix/UnixCancellationPipe.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using static Cathode.Unix.UnixPInvoke;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix;
namespace Vezel.Cathode.Terminals.Unix;

sealed class UnixCancellationPipe
{
Expand Down
6 changes: 3 additions & 3 deletions src/core/Terminals/Unix/UnixTerminalReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Cathode.Threading;
using static Cathode.Unix.UnixPInvoke;
using Vezel.Cathode.Threading;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix;
namespace Vezel.Cathode.Terminals.Unix;

sealed class UnixTerminalReader : NativeTerminalReader<UnixVirtualTerminal, int>
{
Expand Down
6 changes: 3 additions & 3 deletions src/core/Terminals/Unix/UnixTerminalWriter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Cathode.Threading;
using static Cathode.Unix.UnixPInvoke;
using Vezel.Cathode.Threading;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix;
namespace Vezel.Cathode.Terminals.Unix;

sealed class UnixTerminalWriter : NativeTerminalWriter<UnixVirtualTerminal, int>
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/Terminals/Unix/UnixVirtualTerminal.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using static Cathode.Unix.UnixPInvoke;
using static Vezel.Cathode.Unix.UnixPInvoke;

namespace Cathode.Terminals.Unix;
namespace Vezel.Cathode.Terminals.Unix;

abstract class UnixVirtualTerminal : NativeVirtualTerminal<int>
{
Expand Down
Loading

0 comments on commit 680b3f8

Please sign in to comment.