ponyfetch/README.md
2022-12-05 08:52:05 +01:00

124 lines
4.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div align="center">
<img
src="https://i.postimg.cc/bwmFtxyp/fd-1.png" style="height: 220px; width: 340px;"
/>
</div>
<p align="center">
<img src="https://img.shields.io/github/contributors/Atsukoro1/ponyfetch?color=blue&style=for-the-badge"/>
<img src="https://img.shields.io/github/issues/Atsukoro1/ponyfetch?style=for-the-badge"/>
<img src="https://img.shields.io/badge/Made%20with-Rust-blue?style=for-the-badge"/>
</p>
<p align="center">
<b>⚠️ (WIP) This project is not ready for any serious use right now.</b></br></br>
A cross-platform command-line interface (CLI) tool written in Rust</br> to display system information in an aesthetically pleasing and entertaining manner.
</p>
## 📜 Table of contents
- [📜 Table of contents](#-table-of-contents)
- [✨ Demo](#-demo)
- [🔧 Using](#-using)
- [🧪 Requirements for install](#-requirements-for-install)
- [⚡ Installing](#-installing)
- [🔨 Compiling](#-compiling)
- [📚 Contributing](#-contributing)
- [🐎 Adding new ponies](#-adding-new-ponies)
- [🖥️ Modifying \& Adding code](#-modifying--adding-code)
- [⛓️ Sources](#-sources)
## ✨ Demo
`Ponyfetch` provides an aesthetically pleasing, colorful display of important system information, complete with charming ponies.
<img src="https://i.postimg.cc/MK6Fy3tP/konecne.gif" style="height: 300px; width: 570px;" alt="demo">
## 🔧 Using
```bash
ponyfetch [OPTION]
```
| Option | Description | Type | Default | Required? |
|--------|----------------------------------------------------------|--------|---------|-----------|
| `-c` or `--color` | Defines what color to print pony and titles in | `String` | `blue` | No |
| `-p` or `--pony` | Pony to print | `String` | `rainbowdash` | No |
| `-h` or `--help` | Help menu in case you don't understand this one | | | No |
## 🧪 Requirements for install
On Linux (MAC not tested), install net-tools package using
```sh
sudo apt-get install net-tools
```
or
```sh
sudo pacman -S net-tools
```
## ⚡ Installing
If you don't want to compile this tool by yourself, it's possible to just download current build [right here](https://github.com/Atsukoro1/ponyfetch/releases).
If you're installing the binary yourself, the install script is useless for you since the directory paths are completely different,
so I'll provide the steps here.
- 🐧 On Linux
1. First, create ponyfetch directory like this:
```sh
mkdir /usr/share/ponyfetch && mkdir /usr/share/ponyfetch/ponies
```
1. Download the ponies from this Github repo amd move them to the ponies directory.
2. Move the binary to /usr/bin and /bin
- 🖥️ On Windows
1. Create ponyfetch directories like this:
```sh
md C:\Program Files\Ponyfetch
md C:\Program Files\Ponyfetch\ponies\
```
2. Download the ponies from this Github repo and move them to the ponies directory.
3. Move the executable to "C:\\Program Files\\Ponyfetch"
4. Add the directory mentioned in previous step to the path like this:
```sh
setx /M path "%path%;C:\Program Files\Ponyfetch"
```
## 🔨 Compiling
Make sure you have [rust compiler and build tools](https://www.rust-lang.org/tools/install) installed.
I've made it easy for you, just cd into project folder and run this shell script.
- 🐧 On Linux
```sh
chmod +x ./install.sh && sudo ./install.sh
```
- 🖥️ On Windows
```sh
./install.bat
```
- 🍎 On Mac
```txt
(WIP) Ponyfetch was never tested on Mac and it's stability can't be guaranteed.
```
## 📚 Contributing
#### 🐎 Adding new ponies
If you wish to add new ponies to the project, please adhere to the following guidelines in order to maintain the project's structural integrity and functionality. The two main distinguishing features of these ponies are their size and style (e.g. Hat or Wings). Refer to the current pony ASCII art to determine the size of your new pony. If your pony is larger than the others, use the format `<ponyname>_large`. If the size is the same as an existing pony, find a visible difference between your pony and the current one, and name it `<ponyname>_<difference>_large`. If you are still unsure, please open an issue to discuss it with members of our team. Additionally, after adding a new pony, please ensure to credit the author in the "Sources" section of the README.
#### 🖥️ Modifying & Adding code
Ponyfetch is still under development, so it is likely that there are bugs present. If you encounter one, please open an issue and discuss it with us. Once the discussion is completed, submit a pull request with the proposed changes.
## ⛓️ Sources
1. PYTHON, Clive. In: ASCIIMAN [online]. [cit. 2022-12-02]. Available from: https://asciiman.neocities.org/MLP.html
2. My Little Pony ASCII Art. [online]. [cited 2022-12-02]. Available from: https://emojicombos.com/my-little-pony-ascii-art