diff --git a/src/dotnet-meai/Program.cs b/src/dotnet-meai/Program.cs index 15d6cd5..e332da8 100644 --- a/src/dotnet-meai/Program.cs +++ b/src/dotnet-meai/Program.cs @@ -52,9 +52,9 @@ #endif // --quiet does not report sponsor tier on every run. -await ((IServiceProvider)registrar).GetRequiredService().ExecuteAsync( +await ((IServiceProvider)registrar).GetRequiredService().ExecuteAsync( new CommandContext(["--quiet"], RemainingArguments.Empty, "check", null), - new Devlooped.Sponsors.CheckCommand.CheckSettings { Quiet = true }); + new CheckCommand.CheckSettings { Quiet = true }); return result; diff --git a/src/dotnet-meai/Sponsors/CheckCommand.cs b/src/dotnet-meai/Sponsors/CheckCommand.cs index ae4f1d9..da5a19c 100644 --- a/src/dotnet-meai/Sponsors/CheckCommand.cs +++ b/src/dotnet-meai/Sponsors/CheckCommand.cs @@ -1,12 +1,13 @@ using System.ComponentModel; +using Devlooped.Sponsors; using DotNetConfig; using Microsoft.Extensions.DependencyInjection; using Spectre.Console; using Spectre.Console.Cli; -using static Devlooped.Sponsors.CheckCommand; +using static Devlooped.Extensions.AI.CheckCommand; using static ThisAssembly.Strings; -namespace Devlooped.Sponsors; +namespace Devlooped.Extensions.AI; [Description("Checks the current sponsorship status with [lime]devlooped[/], entirely offline")] [Service] diff --git a/src/dotnet-meai/Sponsors/Sponsors.Designer.cs b/src/dotnet-meai/Sponsors/Sponsors.Designer.cs deleted file mode 100644 index 614e3c8..0000000 --- a/src/dotnet-meai/Sponsors/Sponsors.Designer.cs +++ /dev/null @@ -1,135 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Devlooped.Extensions.AI.Sponsors { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Sponsors { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Sponsors() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [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("Devlooped.Extensions.AI.Sponsors.Sponsors", typeof(Sponsors).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Thank you for being part of team {0} with your contributions 💟!. - /// - internal static string Contributor_Message { - get { - return ResourceManager.GetString("Contributor_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sponsor status has expired and automatic sync has not been enabled.. - /// - internal static string Expired_Message { - get { - return ResourceManager.GetString("Expired_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sponsor status needs periodic updating and automatic sync has not been enabled.. - /// - internal static string Expiring_Message { - get { - return ResourceManager.GetString("Expiring_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Grace period ends in {0} days. Enjoy and please consider supporting {1} by sponsoring {2} 🙏. - /// - internal static string Grace_Message { - get { - return ResourceManager.GetString("Grace_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Thank you for being an open source author 💟!. - /// - internal static string OpenSource_Message { - get { - return ResourceManager.GetString("OpenSource_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Thank you for supporting {0} with your sponsorship 💟!. - /// - internal static string Sponsor_Message { - get { - return ResourceManager.GetString("Sponsor_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Team {0} 💪. - /// - internal static string Team_Message { - get { - return ResourceManager.GetString("Team_Message", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please consider supporting {0} by sponsoring {1} 🙏. - /// - internal static string Unknown_Message { - get { - return ResourceManager.GetString("Unknown_Message", resourceCulture); - } - } - } -} diff --git a/src/dotnet-meai/Sponsors/SponsorsAppExtensions.cs b/src/dotnet-meai/Sponsors/SponsorsAppExtensions.cs index bc90f22..7df7186 100644 --- a/src/dotnet-meai/Sponsors/SponsorsAppExtensions.cs +++ b/src/dotnet-meai/Sponsors/SponsorsAppExtensions.cs @@ -1,7 +1,8 @@ -using DotNetConfig; +using Devlooped.Sponsors; +using DotNetConfig; using Spectre.Console.Cli; -namespace Devlooped.Sponsors; +namespace Devlooped.Extensions.AI; static class SponsorsAppExtensions { diff --git a/src/dotnet-meai/Sponsors/SyncCommand.cs b/src/dotnet-meai/Sponsors/SyncCommand.cs index aecc833..102d101 100644 --- a/src/dotnet-meai/Sponsors/SyncCommand.cs +++ b/src/dotnet-meai/Sponsors/SyncCommand.cs @@ -1,9 +1,10 @@ using System.ComponentModel; +using Devlooped.Sponsors; using DotNetConfig; using Microsoft.Extensions.DependencyInjection; using Spectre.Console.Cli; -namespace Devlooped.Sponsors; +namespace Devlooped.Extensions.AI; [Description("Synchronizes your sponsorship manifest for [lime]devlooped[/]")] [Service] diff --git a/src/dotnet-meai/Sponsors/ViewCommand.cs b/src/dotnet-meai/Sponsors/ViewCommand.cs index ba00142..7f9920d 100644 --- a/src/dotnet-meai/Sponsors/ViewCommand.cs +++ b/src/dotnet-meai/Sponsors/ViewCommand.cs @@ -1,8 +1,9 @@ using System.ComponentModel; +using Devlooped.Sponsors; using DotNetConfig; using Spectre.Console.Cli; -namespace Devlooped.Sponsors; +namespace Devlooped.Extensions.AI; [Description("Validates and displays your sponsor manifest for [lime]devlooped[/], if present")] class DevloopedViewCommand(Config config, IHttpClientFactory http) : ViewCommand(http) diff --git a/src/dotnet-meai/dotnet-meai.csproj b/src/dotnet-meai/dotnet-meai.csproj index f5b0ced..6ec5b5a 100644 --- a/src/dotnet-meai/dotnet-meai.csproj +++ b/src/dotnet-meai/dotnet-meai.csproj @@ -4,6 +4,7 @@ Exe net8.0 false + true dotnet-meai A Microsoft.Extension.AI-powered CLI dotnet-meai @@ -15,16 +16,16 @@ - + - - - - - - - - + + + + + + + + @@ -35,9 +36,9 @@ - - - + + + @@ -49,21 +50,6 @@ - - - True - True - Sponsors.resx - - - - - - ResXFileCodeGenerator - Sponsors.Designer.cs - - -