https://github.com/ultirequiem/rat
🐀 A cat clone
https://github.com/ultirequiem/rat
cli csharp nugget
Last synced: over 1 year ago
JSON representation
🐀 A cat clone
- Host: GitHub
- URL: https://github.com/ultirequiem/rat
- Owner: UltiRequiem
- License: mit
- Created: 2021-10-26T14:32:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-19T14:20:58.000Z (over 4 years ago)
- Last Synced: 2025-03-11T12:05:26.115Z (over 1 year ago)
- Topics: cli, csharp, nugget
- Language: C#
- Homepage: https://nuget.org/packages/rat
- Size: 12.7 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Rat
A [`cat`](https://en.wikipedia.org/wiki/Cat_(Unix)) clone.
## Install
If you have installed
[`dotnet`](https://docs.microsoft.com/en-us/dotnet/core/tools):
```sh
dotnet tool install --global rat
```
If you have installed
[`msc`](https://www.mono-project.com/docs/about-mono/languages/csharp), The
Turbo C# Compiler, you can try the
[v1.0.0](https://github.com/UltiRequiem/rat/tree/v1.0.0), version:
```sh
git clone https://github.com/UltiRequiem/rat && cd rat && git checkout 423c4b7;
mcs Program.cs -out:rat && sudo mv rat /usr/bin/rat # Or somewhere else in $PATH
```
## Usage
If you dont pass arguments it will print the stdin, just as `cat`.
```
rat
```
Using the `--number` flag:
```sh
rat --number Program.cs
```
Using the `--show-ends` flag:
```sh
rat --show-ends Program.cs
```
At the moment this options are supported:
- `--number`: Number all output lines
- `--show-ends`: Display "$" at the end of each line
## Note
This was the first project I did in `C#`, practically a "Hello world".
## License
This project is licensed under the [MIT License](./license).