Skip to content

Commit

Permalink
feat: new colored output
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTravyan committed Nov 23, 2022
1 parent 6d2fb79 commit b94e59d
Show file tree
Hide file tree
Showing 18 changed files with 1,419 additions and 1,001 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "genin"
version = "0.4.6"
version = "0.4.7"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -13,4 +13,4 @@ clap = "4"
regex = "^1.5"
env_logger = "^0.9"
log = "^0.4.17"
tabled = { version = "0.10.0", features = ["color"]}
tabled = { version = "^0.10", features = ["color"]}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ sudo yum install -y genin
2. If you want to install `rpm` packages directly without adding our repository.
```shell
# RHEL 8.x, CentOS 8.x, Rockylinux 8.x, recent Fedora version
sudo rpm -i https://binary.picodata.io/repository/yum/el/8/x86_64/os/genin-0.4.6-1.el8.x86_64.rpm
sudo rpm -i https://binary.picodata.io/repository/yum/el/8/x86_64/os/genin-0.4.7-1.el8.x86_64.rpm
# RHEL 7.x, CentOS 7.x
sudo rpm -i https://binary.picodata.io/repository/yum/el/7/x86_64/os/genin-0.4.6-1.el7.x86_64.rpm
sudo rpm -i https://binary.picodata.io/repository/yum/el/7/x86_64/os/genin-0.4.7-1.el7.x86_64.rpm
```
> **Note:** please don't forget to pick the right package for your OS version.
#### Debian, Ubuntu
We provide the `deb` Genin package for `debian`-based Linux distributions including the Ubuntu family. Use the following command to download and install the package:
```shell
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.6.amd64.deb && sudo dpkg -i genin-0.4.6.amd64.deb
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.7.amd64.deb && sudo dpkg -i genin-0.4.7.amd64.deb
```

#### MacOSX
Expand All @@ -92,8 +92,8 @@ brew install genin
Use the following command to grab and install Genin in macOS (10.10+) wihtout
homebrew:
```shell
curl -L https://binary.picodata.io/repository/raw/genin/apple/genin-0.4.6-darwin-amd64.zip -o genin-0.4.6-darwin-amd64.zip
unzip genin-0.4.6-darwin-amd64.zip -d ~/bin/
curl -L https://binary.picodata.io/repository/raw/genin/apple/genin-0.4.7-darwin-amd64.zip -o genin-0.4.7-darwin-amd64.zip
unzip genin-0.4.7-darwin-amd64.zip -d ~/bin/
```
> **Note:** The application can then be found under the `~/bin` directory.
> Make sure the directory is in your `$PATH`.
Expand All @@ -102,8 +102,8 @@ unzip genin-0.4.6-darwin-amd64.zip -d ~/bin/
#### Windows
Use the following command to grab and install Genin in Windows 7 64 bit or newer:
```shell
curl.exe -L https://binary.picodata.io/repository/raw/genin/windows/genin-0.4.6-darwin-amd64.zip -o genin-0.4.6-windows-amd64.zip
unzip.exe genin-0.4.6-windows-amd64.zip -d %HOME%/.cargo/bin/
curl.exe -L https://binary.picodata.io/repository/raw/genin/windows/genin-0.4.7-darwin-amd64.zip -o genin-0.4.7-windows-amd64.zip
unzip.exe genin-0.4.7-windows-amd64.zip -d %HOME%/.cargo/bin/
```
> **Note:** The application can then be found under the `.cargo/bin` folder inside
> your user profile folder. Make sure it is in your `%PATH%`.
Expand Down
22 changes: 11 additions & 11 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Genin уже заранее скомпилирован под разные ар

Универсальный исполняемый файл:
```shell
curl -sLO https://binary.picodata.io/repository/raw/genin/bin/genin-0.4.6-x86_64-musl.tar.gz
tar -xvf genin-0.4.6-x86_64-musl.tar.gz ; sudo install genin /usr/local/bin/
curl -sLO https://binary.picodata.io/repository/raw/genin/bin/genin-0.4.7-x86_64-musl.tar.gz
tar -xvf genin-0.4.7-x86_64-musl.tar.gz ; sudo install genin /usr/local/bin/
```

---
Expand Down Expand Up @@ -84,11 +84,11 @@ sudo yum install -y genin
2. Так же вы можете установить пакет `rpm` напрямую без добавления нашего репозитория.
RHEL 8.x, CentOS 8.x, Rockylinux 8.x, recent Fedora version
```shell
sudo rpm -i https://binary.picodata.io/repository/yum/el/8/x86_64/os/genin-0.4.6-1.el8.x86_64.rpm
sudo rpm -i https://binary.picodata.io/repository/yum/el/8/x86_64/os/genin-0.4.7-1.el8.x86_64.rpm
```
RHEL 7.x, CentOS 7.x
```shell
sudo rpm -i https://binary.picodata.io/repository/yum/el/7/x86_64/os/genin-0.4.6-1.el7.x86_64.rpm
sudo rpm -i https://binary.picodata.io/repository/yum/el/7/x86_64/os/genin-0.4.7-1.el7.x86_64.rpm
```
> **Note:** будьте внимательны, так как при выборе не правильной версии ос могут быть ошибки
> при установке `rpm`
Expand All @@ -115,7 +115,7 @@ sudo apt install -y genin

2. Загрузкой и установкой пакета напрямую:
```shell
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.6.amd64.deb && sudo dpkg -i genin-0.4.6.amd64.deb
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.7.amd64.deb && sudo dpkg -i genin-0.4.7.amd64.deb
```

---
Expand All @@ -140,7 +140,7 @@ sudo apt install -y genin

2. Загрузкой и установкой пакета напрямую:
```shell
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.6.amd64.deb && sudo dpkg -i genin-0.4.6.amd64.deb
curl -sLO https://binary.picodata.io/repository/raw/genin/deb/genin-0.4.7.amd64.deb && sudo dpkg -i genin-0.4.7.amd64.deb
```

---
Expand All @@ -160,8 +160,8 @@ brew install genin
Для установки без помощи homebrew используйте следующие команды для загрузки и установки
Genin на macOS (10.10+):
```shell
curl -sLO https://binary.picodata.io/repository/raw/genin/osx/genin-0.4.6-x86_64-macosx.tar.gz
unzip genin-0.4.6-darwin-amd64.zip -d ~/bin/
curl -sLO https://binary.picodata.io/repository/raw/genin/osx/genin-0.4.7-x86_64-macosx.tar.gz
unzip genin-0.4.7-darwin-amd64.zip -d ~/bin/
```

---
Expand All @@ -175,8 +175,8 @@ unzip genin-0.4.6-darwin-amd64.zip -d ~/bin/
Используйте следующие команды для скачивания и установки Genin на операционных системах
Windows 7 64 и новее.
```shell
curl.exe -sLO https://binary.picodata.io/repository/raw/genin/win/genin-0.4.6-win64.zip
unzip.exe genin-0.4.6-win64.zip -d %HOME%/.cargo/bin/
curl.exe -sLO https://binary.picodata.io/repository/raw/genin/win/genin-0.4.7-win64.zip
unzip.exe genin-0.4.7-win64.zip -d %HOME%/.cargo/bin/
```
> **Note:** Genin будет распакован в директорию `.cargo/bin` которая находится в домашнем
> каталоге важего пользователя. Перед использованием приложения пожалуйста удостоверьтесь
Expand All @@ -186,7 +186,7 @@ unzip.exe genin-0.4.6-win64.zip -d %HOME%/.cargo/bin/
```
genin --version
```
Если вы видите сообщение `genin 0.4.6` значит установка прошла успешно.
Если вы видите сообщение `genin 0.4.7` значит установка прошла успешно.

---
## Руководство по использованию
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
mod task;
mod error;
mod task;

// Startup application params
const APP_NAME: &str = env!("CARGO_PKG_NAME");
const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
const APP_AUTHOR: &str = env!("CARGO_PKG_AUTHORS");


const DEFAULT_STATEBOARD_PORT: u16 = 4401;
const DEFAULT_HTTP_PORT: u16 = 8081;
const DEFAULT_BINARY_PORT: u16 = 3031;

fn main() -> Result<(), Box<dyn std::error::Error>> {
task::run_v2()?;
Expand Down
Loading

0 comments on commit b94e59d

Please sign in to comment.