Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 1.54 KB

README.md

File metadata and controls

69 lines (40 loc) · 1.54 KB

grab

asd

About

DISCLAIMER: grab is not fully complete yet, it is a WIP!

  • A fetch tool written in POSIX sh and C++

  • Meant for use in StratOS (A Arch-based distro made by Linux hobbyists)

  • For further info on how to contribute to this project, refer to CONTRIBUTING.md

Tasks

  • Fetch the info dynamically
  • Cache the info for faster execution
  • Major code clean up (most likely a rewrite)
  • Configuration file
  • Testing on multiple systems

Why shell inside C++?

The C++ part handles all the layout calculations and printing. The shell script (under shell_script variable) is the script that fetches the info.

The reason for using a shell script for fetching is its simpler to expand on. Additionally shell scripts already exist for this job (making use of neofetch's functions here)

Printing in shell is simply too slow for such a cosmetic interface, hence the use of C++.

Contributing

C++: WIP

sh:

  • Functionalize everything in a format like:
# Description of function
# (paramters, asd=default_value)
function_name() {
    ...
}
  • For further info on how to contribute to this project, refer to CONTRIBUTING.md