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.
- Host: GitHub
- URL: https://github.com/daredever/yae
- Owner: daredever
- License: mit
- Created: 2020-08-04T06:24:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T05:41:31.000Z (over 5 years ago)
- Last Synced: 2024-04-27T22:21:44.228Z (over 1 year ago)
- Topics: cli, console, csharp, dotnet, dotnet-cli, dotnet-core, dotnet-new, dotnet-tool, nuget, text-editor, yae
- Language: C#
- Homepage:
- Size: 109 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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
[](https://www.nuget.org/packages/Yae.Core/)
- Yae.Tool - Console-based text editor tool for .NET Core CLI
[](https://www.nuget.org/packages/Yae.Tool/)
- Yae.Templates - Templates to use when creating *.cs files
[](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:
