refactor: renaming namespaces

This commit is contained in:
D. Moonfire 2022-09-06 00:53:22 -05:00
parent 7a42ce2f00
commit d35410625a
191 changed files with 315 additions and 314 deletions

1
examples/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
artifacts/

View file

@ -2,13 +2,13 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Gallium;
using MfGames.Gallium;
using Nitride;
using Nitride.IO.Contents;
using Nitride.IO.Directories;
using Nitride.IO.Paths;
using Nitride.Pipelines;
using MfGames.Nitride;
using MfGames.Nitride.IO.Contents;
using MfGames.Nitride.IO.Directories;
using MfGames.Nitride.IO.Paths;
using MfGames.Nitride.Pipelines;
namespace CopyFiles;

View file

@ -5,8 +5,8 @@ using Autofac;
using MfGames.IO.Extensions;
using Nitride;
using Nitride.IO;
using MfGames.Nitride;
using MfGames.Nitride.IO;
namespace CopyFiles;

View file

@ -5,7 +5,7 @@ using CliWrap;
using MfGames.IO.Extensions;
using Nitride.Tests;
using MfGames.Nitride.Tests;
using Xunit;
using Xunit.Abstractions;

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Calendar;
namespace MfGames.Nitride.Calendar;
public class CreateCalendarValidator : AbstractValidator<CreateCalender>
{

View file

@ -4,20 +4,20 @@ using System.Linq;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Ical.Net.CalendarComponents;
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using Nitride.Contents;
using Nitride.Temporal;
using MfGames.Nitride.Contents;
using MfGames.Nitride.Temporal;
using NodaTime;
using Zio;
namespace Nitride.Calendar;
namespace MfGames.Nitride.Calendar;
/// <summary>
/// Creates an iCalendar file from all the entities passed into the method

View file

@ -1,4 +1,4 @@
namespace Nitride.Calendar;
namespace MfGames.Nitride.Calendar;
/// <summary>
/// A marker component for identifying an entity that represents a calendar.

View file

@ -16,7 +16,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
<PackageReference Include="Ical.Net" Version="4.2.0" />
<PackageReference Include="NodaTime" Version="3.1.0" />
<PackageReference Include="Zio" Version="0.15.0" />

View file

@ -1,8 +1,8 @@
using Autofac;
using Nitride.Temporal;
using MfGames.Nitride.Temporal;
namespace Nitride.Calendar;
namespace MfGames.Nitride.Calendar;
public static class NitrideCalendarBuilderExtensions
{

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Calendar;
namespace MfGames.Nitride.Calendar;
public class NitrideCalendarModule : Module
{

View file

@ -4,10 +4,10 @@ using System.Linq;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Nitride.Contents;
using Nitride.Feeds.Structure;
using MfGames.Nitride.Contents;
using MfGames.Nitride.Feeds.Structure;
using NodaTime;
@ -15,7 +15,7 @@ using Serilog;
using Zio;
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
/// <summary>
/// Creates various feeds from the given input.

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
public class CreateAtomFeedValidator : AbstractValidator<CreateAtomFeed>
{

View file

@ -1,4 +1,4 @@
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
/// <summary>
/// A marker component that indicates this entity has a feed associated with

View file

@ -1,4 +1,4 @@
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
/// <summary>
/// A marker component that indicates this page is a feed.

View file

@ -16,7 +16,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
<PackageReference Include="NodaTime" Version="3.1.0" />
<PackageReference Include="Zio" Version="0.15.0" />
</ItemGroup>

View file

@ -1,8 +1,8 @@
using Autofac;
using Nitride.Temporal;
using MfGames.Nitride.Temporal;
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
public static class NitrideFeedsBuilderExtensions
{

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Feeds;
namespace MfGames.Nitride.Feeds;
public class NitrideFeedsModule : Module
{

View file

@ -1,6 +1,6 @@
using System.Xml.Linq;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// The type-safe structure for an author element.

View file

@ -1,7 +1,7 @@
using System;
using System.Xml.Linq;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// The type-safe structure for a entry's category element.

View file

@ -4,9 +4,9 @@ using System.Xml.Linq;
using NodaTime;
using static Nitride.Feeds.Structure.XmlConstants;
using static MfGames.Nitride.Feeds.Structure.XmlConstants;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// The type-safe structure for an entry in the Atom feed.

View file

@ -3,9 +3,9 @@ using System.Xml.Linq;
using NodaTime;
using static Nitride.Feeds.Structure.XmlConstants;
using static MfGames.Nitride.Feeds.Structure.XmlConstants;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// The type-safe structure of the top-level feed.

View file

@ -1,6 +1,6 @@
using System.Xml.Linq;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// Helper methods for working with XML elements.

View file

@ -1,6 +1,6 @@
using System.Xml.Linq;
namespace Nitride.Feeds.Structure;
namespace MfGames.Nitride.Feeds.Structure;
/// <summary>
/// Common constants used while generating feeds.

View file

@ -1,4 +1,4 @@
namespace Nitride.Gemtext;
namespace MfGames.Nitride.Gemtext;
/// <summary>
/// A marker component for indicating that an entity is Gemtext, the format

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Gemtext;
namespace MfGames.Nitride.Gemtext;
public static class NitrideGemtextBuilderExtensions
{

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Gemtext;
namespace MfGames.Nitride.Gemtext;
public class NitrideGemtextModule : Module
{

View file

@ -1,6 +1,6 @@
using Microsoft.CodeAnalysis;
namespace Nitride.Generators;
namespace MfGames.Nitride.Generators;
/// <summary>
/// Various wrappers around the diagnostics to simplify generation.

View file

@ -1,4 +1,4 @@
namespace Nitride.Generators;
namespace MfGames.Nitride.Generators;
/// <summary>
/// All the error messages produced by the generators.

View file

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />

View file

@ -2,7 +2,7 @@ using System.Collections.Generic;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Nitride.Generators;
namespace MfGames.Nitride.Generators;
/// <summary>
/// Internal class that consolidates all of the information needed to generate a

View file

@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
namespace Nitride.Generators;
namespace MfGames.Nitride.Generators;
/// <summary>
/// Implements a source generator that creates Set* methods for the various

View file

@ -4,7 +4,7 @@ using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Nitride.Generators;
namespace MfGames.Nitride.Generators;
internal class WithPropertySyntaxReceiver : ISyntaxReceiver
{

View file

@ -3,13 +3,13 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using HandlebarsDotNet;
using Nitride.Contents;
using MfGames.Nitride.Contents;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// An operation that applies a common or shared template on the content of

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
public class ApplyStyleTemplateValidator : AbstractValidator<ApplyStyleTemplate>
{

View file

@ -2,7 +2,7 @@ using System.IO;
using HandlebarsDotNet;
namespace Nitride.Handlebars.Configuration;
namespace MfGames.Nitride.Handlebars.Configuration;
/// <summary>
/// Loads the templates from the given directory.

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using HandlebarsDotNet;
namespace Nitride.Handlebars.Configuration;
namespace MfGames.Nitride.Handlebars.Configuration;
/// <summary>
/// </summary>

View file

@ -1,6 +1,6 @@
using HandlebarsDotNet;
namespace Nitride.Handlebars.Configuration;
namespace MfGames.Nitride.Handlebars.Configuration;
/// <summary>
/// Describes a block helper which can be registered.

View file

@ -1,6 +1,6 @@
using HandlebarsDotNet;
namespace Nitride.Handlebars.Configuration;
namespace MfGames.Nitride.Handlebars.Configuration;
/// <summary>
/// Describes a dependency injected loader of templates or modules.

View file

@ -4,7 +4,7 @@ using HandlebarsDotNet;
using Open.Threading;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// Implements a cache for templates to prevent compiling the same template

View file

@ -1,4 +1,4 @@
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// A marker component that indicates that a given file with text component

View file

@ -4,9 +4,9 @@ using System.Linq;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// An operation that discovers which text files have a Handlebars template

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
public class IdentifyHandlebarsFromComponentValidator : AbstractValidator<IdentifyHandlebarsFromComponent>
{

View file

@ -1,10 +1,10 @@
using System.Collections.Generic;
using Gallium;
using MfGames.Gallium;
using Nitride.Contents;
using MfGames.Nitride.Contents;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// An operation that discovers which text files have a Handlebars template

View file

@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="Autofac" Version="6.4.0" />
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
<PackageReference Include="Handlebars.Net" Version="2.1.2" />
<PackageReference Include="NodaTime.Testing" Version="3.1.0" />
<PackageReference Include="Open.Threading" Version="2.2.0" />

View file

@ -3,9 +3,9 @@ using System.Collections.Generic;
using Autofac;
using Nitride.Handlebars.Configuration;
using MfGames.Nitride.Handlebars.Configuration;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
public static class NitrideHandlebarsBuilderExtensions
{

View file

@ -4,9 +4,9 @@ using Autofac;
using HandlebarsDotNet;
using Nitride.Handlebars.Configuration;
using MfGames.Nitride.Handlebars.Configuration;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
public class NitrideHandlebarsModule : Module
{

View file

@ -3,13 +3,13 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using HandlebarsDotNet;
using Nitride.Contents;
using MfGames.Nitride.Contents;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// An operation that uses the content to create a template that is then

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Handlebars;
namespace MfGames.Nitride.Handlebars;
public class RenderContentTemplateValidator : AbstractValidator<RenderContentTemplate>
{

View file

@ -1,11 +1,11 @@
using System.Collections.Generic;
using System.Net;
using Gallium;
using MfGames.Gallium;
using Nitride.Contents;
using MfGames.Nitride.Contents;
namespace Nitride.Html;
namespace MfGames.Nitride.Html;
/// <summary>
/// Converts the text input that uses HTML entities and turns them into

View file

@ -1,4 +1,4 @@
namespace Nitride.Html;
namespace MfGames.Nitride.Html;
/// <summary>
/// A marker component that indicates that the entity is an HTML file.

View file

@ -25,7 +25,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
</ItemGroup>
</Project>

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Html;
namespace MfGames.Nitride.Html;
public static class NitrideHtmlBuilderExtensions
{

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.Html;
namespace MfGames.Nitride.Html;
public class NitrideHtmlModule : Module
{

View file

@ -1,10 +1,10 @@
using System.IO;
using Nitride.Contents;
using MfGames.Nitride.Contents;
using Zio;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
/// <summary>
/// Contains a wrapper around a file entry to retrieve the binary data.

View file

@ -1,11 +1,11 @@
using System.IO;
using System.Text;
using Nitride.Contents;
using MfGames.Nitride.Contents;
using Zio;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
/// <summary>
/// Contains a wrapper around a file entry to retrieve text data.

View file

@ -7,13 +7,13 @@ using DotNet.Globbing;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Nitride.Contents;
using MfGames.Nitride.Contents;
using Zio;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
/// <summary>
/// A module that reads files from the file system and wraps them in an

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
public class ReadFilesValidator : AbstractValidator<ReadFiles>
{

View file

@ -6,15 +6,15 @@ using System.Text;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Nitride.Contents;
using MfGames.Nitride.Contents;
using Serilog;
using Zio;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
/// <summary>
/// An operation that writes out entities to a file system.

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Contents;
namespace MfGames.Nitride.IO.Contents;
public class WriteFilesValidator : AbstractValidator<WriteFiles>
{

View file

@ -3,13 +3,13 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Serilog;
using Zio;
namespace Nitride.IO.Directories;
namespace MfGames.Nitride.IO.Directories;
/// <summary>
/// A Nitride operation that removes the contents of a directory but not

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Directories;
namespace MfGames.Nitride.IO.Directories;
public class ClearDirectoryValidator : AbstractValidator<ClearDirectory>
{

View file

@ -1,10 +1,10 @@
using System.Collections.Generic;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO;
namespace MfGames.Nitride.IO;
public abstract class FileSystemOperationBase : IOperation
{

View file

@ -1,4 +1,4 @@
namespace Nitride.IO;
namespace MfGames.Nitride.IO;
public enum IfFoundOutput
{

View file

@ -11,7 +11,7 @@
<PackageReference Include="Autofac" Version="6.4.0" />
<PackageReference Include="DotNet.Glob" Version="3.1.3" />
<PackageReference Include="FluentValidation" Version="11.1.0" />
<PackageReference Include="Gallium" Version="1.4.0" />
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
<PackageReference Include="MAB.DotIgnore" Version="3.0.2" />
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="Zio" Version="0.15.0" />

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.IO;
namespace MfGames.Nitride.IO;
public static class NitrideIOBuilderExtensions
{

View file

@ -1,12 +1,12 @@
using System.Collections.Generic;
using Gallium;
using MfGames.Gallium;
using MAB.DotIgnore;
using Zio;
namespace Nitride.IO;
namespace MfGames.Nitride.IO;
/// <summary>
/// Extension methods for working with paths.

View file

@ -1,6 +1,6 @@
using Autofac;
namespace Nitride.IO;
namespace MfGames.Nitride.IO;
public class NitrideIOModule : Module
{

View file

@ -2,11 +2,11 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
[WithProperties]
public partial class AddPathPrefix : OperationBase

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
public class AddPathPrefixValidator : AbstractValidator<AddPathPrefix>
{

View file

@ -2,11 +2,11 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// Changes the extension of the paths given.

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
public class ChangePathExtensionValidator : AbstractValidator<ChangePathExtension>
{

View file

@ -1,8 +1,8 @@
using System.Collections.Generic;
using Gallium;
using MfGames.Gallium;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// A wrapper around List&lt;Entity&gt; for handling direct children lists.

View file

@ -2,13 +2,13 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Nitride.Entities;
using MfGames.Nitride.Entities;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// Implements a scanner that gathers up all the direct child files

View file

@ -3,15 +3,15 @@ using System.Linq;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Nitride.Entities;
using MfGames.Nitride.Entities;
using Serilog;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
[WithProperties]
public partial class LinkDirectChildren : CreateOrUpdateIndex

View file

@ -3,11 +3,11 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// Moves various files to indexes of a direction with the base filename.

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
public class MoveToIndexPathValidator : AbstractValidator<MoveToIndexPath>
{

View file

@ -2,11 +2,11 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// An operation that removes a path prefix from the input.

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
public class RemovePathPrefixValidator : AbstractValidator<RemovePathPrefix>
{

View file

@ -3,11 +3,11 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// A pipeline operation that replaces the UPath of the given entity

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
public class ReplacePathValidator : AbstractValidator<ReplacePath>
{

View file

@ -1,6 +1,6 @@
using Zio;
namespace Nitride.IO.Paths;
namespace MfGames.Nitride.IO.Paths;
/// <summary>
/// Extension methods for the UPath class.

View file

@ -3,13 +3,13 @@ using System.Collections.Generic;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Markdig;
using Nitride.Contents;
using MfGames.Nitride.Contents;
namespace Nitride.Markdown;
namespace MfGames.Nitride.Markdown;
[WithProperties]
public abstract partial class ConvertMarkdownToBase : IOperation

View file

@ -1,6 +1,6 @@
using FluentValidation;
namespace Nitride.Markdown;
namespace MfGames.Nitride.Markdown;
public class ConvertMarkdownToBaseValidator : AbstractValidator<ConvertMarkdownToBase>
{

View file

@ -2,16 +2,16 @@ using System;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Markdig;
using MfGames.Markdown.Gemtext;
using Nitride.Contents;
using Nitride.Gemtext;
using MfGames.Nitride.Contents;
using MfGames.Nitride.Gemtext;
namespace Nitride.Markdown;
namespace MfGames.Nitride.Markdown;
/// <summary>
/// Converts the input Markdown files into Gemtext using Markdig and

View file

@ -2,14 +2,14 @@ using System;
using FluentValidation;
using Gallium;
using MfGames.Gallium;
using Markdig;
using Nitride.Contents;
using Nitride.Html;
using MfGames.Nitride.Contents;
using MfGames.Nitride.Html;
namespace Nitride.Markdown;
namespace MfGames.Nitride.Markdown;
/// <summary>
/// Converts the input Markdown files into HTML using Markdig. This only

View file

<
@ -3,13 +3,13 @@ using System.Collections.Generic;