控制台增加logo

This commit is contained in:
不做码农
2022-12-16 15:52:35 +08:00
parent aad5760289
commit b4772a4153
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using JinianNet.JNTemplate;
using Microsoft.Extensions.DependencyInjection;
using System;
using ZR.Common;
namespace ZR.Admin.WebApi.Extensions
{
public static class LogoExtension
{
public static void AddLogo(this IServiceCollection services)
{
Console.ForegroundColor = ConsoleColor.Blue;
var contentTpl = JnHelper.ReadTemplate("", "logo.txt");
var content = contentTpl.Render();
Console.WriteLine(content);
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("源码地址: https://gitee.com/izory/ZrAdminNetCore");
Console.WriteLine("官方文档http://www.izhaorui.cn/doc");
Console.WriteLine("打赏作者http://www.izhaorui.cn/doc/support.html");
}
}
}