From df6ba786dc6e6f4751cf8e05a7524b34cdb4dc82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A7=E4=BF=8A?= Date: Tue, 17 Aug 2021 10:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/README.md | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/content/README.md b/content/README.md index 2886c12..7c48291 100644 --- a/content/README.md +++ b/content/README.md @@ -1,4 +1,42 @@ -dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.0 +# 安装 +`dotnet new --install DotNetCore.ApiTemplate.CSharp::1.0.1` -dotnet new dncat -n Core.New.Templete -ha true -r true -re true -e true -p false \ No newline at end of file +# 卸载 + +`dotnet new -u DotNetCore.ApiTemplate.CSharp` +# 帮助 + +`dotnet new dncat --help` + +```shell +DotNetCoreApiTemplate (C#) +作者: 欧俊 +选项: + -ha|--hangfire 是否使用hangfire + bool - Required + + -r|--rabbitmq 是否使用RabbitMQ,使用 RabbitMQ.EventBus.AspNetCore包 + bool - Required + + -re|--redis 是否使用DistributedRedisCache + bool - Required + + -p|--pg 是否使用Postgresql + bool - Optional + 默认: true + + -e|--es 是否使用ElasticSearch + bool - Required +``` + +# 例 + +## 使用pg,rabbitmq,redis +`dotnet new dncat -n Core.New.Service -ha false -r true -re true -e false -p true` +## 使用pg,rabbitmq,redis,hangfire +`dotnet new dncat -n Core.New.Service -ha true -r true -re true -e false -p true` +## 使用pg,rabbitmq,redis,es +`dotnet new dncat -n Core.New.Service -ha false -r true -re true -e true -p true` +## 使用rabbitmq,es +`dotnet new dncat -n Core.New.Service -ha false -r true -re false -e true -p false` \ No newline at end of file