An open API service indexing awesome lists of open source software.

https://github.com/daredever/yae

Yet another editor. Console-based text editor tool for .NET Core CLI.
https://github.com/daredever/yae

cli console csharp dotnet dotnet-cli dotnet-core dotnet-new dotnet-tool nuget text-editor yae

Last synced: about 2 months ago
JSON representation

Yet another editor. Console-based text editor tool for .NET Core CLI.

Awesome Lists containing this project

README

          

# yae - yet another editor

Console-based text editor tool for .NET Core CLI.

Nuget packages:
- Yae.Core - Console-based text editor

[![NuGet Version](http://img.shields.io/nuget/v/Yae.Core.svg?style=flat)](https://www.nuget.org/packages/Yae.Core/)

- Yae.Tool - Console-based text editor tool for .NET Core CLI

[![NuGet Version](http://img.shields.io/nuget/v/Yae.Tool.svg?style=flat)](https://www.nuget.org/packages/Yae.Tool/)

- Yae.Templates - Templates to use when creating *.cs files

[![NuGet Version](http://img.shields.io/nuget/v/Yae.Templates.svg?style=flat)](https://www.nuget.org/packages/Yae.Templates/)

Yae uses [.NET Core CLI](https://docs.microsoft.com/en-us/dotnet/core/tools/) toolchain for installing.

#### Install

```text
dotnet tool install -g Yae.Tool
dotnet new -i Yae.Templates
```

#### Uninstall

```text
dotnet tool uninstall -g Yae.Tool
dotnet new -u Yae.Templates
```

### Run tool

Options:

- get help : *--help*
- get version : *--version*
- open file : *-f | --file \*
- set editor lines per page count : *-n | --count \*

Examples:

```text
yae -h
yae -v
yae -f file.txt
yae -f C:\file.txt
yae -n 30 -f C:\file.txt
```

### Use templates

There are 4 file templates:
- Class
- Enum
- Interface
- Struct

All of them create files with a base type content in the current directory.

Options:
- set namespace (default current directory) : *-n \*
- set output (default current directory) : *-o \*
- set type name : *-t \*

Examples:

```text
dotnet new class -t Car
dotnet new enum -t Color
dotnet new interface -t IPerson
dotnet new struct -t Point
```

### Demo

Try it out:

```text
mkdir YaeDemo
cd YaeDemo
dotnet new console
dotnet new class -t MyClass
yae -f MyClass.cs
```

Editor window:

![editor](docs/images/yae.png)