Skip to content
/ citch Public

citch - fast system fetch written in c++ (nitch but c++)

License

Notifications You must be signed in to change notification settings

xeyossr/citch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Citch

Fast system fetch written in 👑 C++ 👑


preview

License Commits AUR GitHub Repo stars GitHub issues GitHub pull requests

GitHub release (latest by date)

Citch is a small and fastsystem fetch tool written fully in C++. If you're familiar with nitch (btw written in Nim), Citch is essentially its C++ version.

Why C++? Well, because I started learning C++ and couldn’t think of anything else, lmao


Installation

If you are using Arch Linux or an Arch-based distribution, you can download citch from AUR:

yay -S citch

If you are not using an Arch-based distribution:

git clone https://github.com/xeyossr/citch.git
cd citch
mkdir -p build && cd build
cmake ..
make
sudo cp build/citch /usr/bin/citch

Usage

citch

flags:

 -gc --gen-config   | generate config file

Configuration

Before doing these, you need to create a configuration file with the --gen-config flag.

~/.config/citch/config.json - config file

{
  "modules": {
    "banner": true,
    "colors": true,
    "distro": true,
    "hostname": true,
    "kernel": true,
    "memory": true,
    "packages": true,
    "shell": true,
    "uptime": true,
    "username": true
  }
}

Building 📦

1) clone repo

git clone https://github.com/xeyossr/citch

2) change dir (cd) to citch

cd citch

3) build program with g++

g++ citch.cpp -o citch

File architecture 📁

citch
├── citch.cpp
├── dist
│   └── citch
├── install.sh
├── LICENSE
├── modules
│   ├── banners.cpp
│   ├── fetch.h
│   └── json.hpp
└── README.md

3 directories, 8 files

Thanks for ideas & examples 💬