Created ListTemplatesCommand empty

pull/13083/head
Yunus Emre Kalkan 3 years ago
parent 9904a9e13b
commit d84130012f

@ -49,6 +49,7 @@ public class AbpCliCoreModule : AbpModule
options.Commands[AddPackageCommand.Name] = typeof(AddPackageCommand);
options.Commands[AddModuleCommand.Name] = typeof(AddModuleCommand);
options.Commands[ListModulesCommand.Name] = typeof(ListModulesCommand);
options.Commands[ListTemplatesCommand.Name] = typeof(ListTemplatesCommand);
options.Commands[LoginCommand.Name] = typeof(LoginCommand);
options.Commands[LoginInfoCommand.Name] = typeof(LoginInfoCommand);
options.Commands[LogoutCommand.Name] = typeof(LogoutCommand);

@ -0,0 +1,39 @@
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Cli.Args;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.Commands;
public class ListTemplatesCommand : IConsoleCommand, ITransientDependency
{
public const string Name = "list-templates";
public ListTemplatesCommand()
{
}
public async Task ExecuteAsync(CommandLineArgs commandLineArgs)
{
}
public string GetUsageInfo()
{
var sb = new StringBuilder();
sb.AppendLine("");
sb.AppendLine("Usage:");
sb.AppendLine(" abp list-templates");
sb.AppendLine("");
sb.AppendLine("See the documentation for more info: https://docs.abp.io/en/abp/latest/CLI");
return sb.ToString();
}
public string GetShortDescription()
{
return "Lists available templates to be created.";
}
}
Loading…
Cancel
Save