Skip to content
/ grab Public
forked from StratOS-Linux/grab

Definitely not a system info fetch script

License

Notifications You must be signed in to change notification settings

zstg/grab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grab

Grab

About

  • 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

C++

The shell is too slow for operations to display such a fetch program. Since this program will possibly be run on a user's terminal on startup, speed is crucial. Additionally, optimizing shell scripts almost always leads to unreadable code, which makes it harder for people to contribute. Hence the rewrite in C++ is to be preferred. The shell version is still here to stay consistent to other fetch scripts using shell.

Todo

C++:

  • Fetch the info dynamically
  • Cache the info for faster execution
  • Configuration file
  • Code cleanup
  • Testing on multiple systems

sh:

  • Colored output
  • Fetch the info dynamically (most likely borrow the scraping script from an existing fetch program)
  • Document the code
  • Configuration file
  • Optimize the script cause its relatively slow as of now

Contributing

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

About

Definitely not a system info fetch script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.5%
  • Shell 4.4%
  • Makefile 0.1%