Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.72 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.72 KB

Shell Utils

Build Status

This repo is intended to extend the shell and contain useful and readable functions that help developers to maintaine their scripts easier and neatly.

The following packages (which basically functions) are available.

  • Console : provides formatted printing to the console
  • Date : provides rich date functionality
  • Import : provides improved import over source command
  • Random : provides readable way of using randoms
  • Files : provides tests against files in a neat way

The next container based packages are also available

  • Aggregate : provides the aggregate or set functionality
  • Map : provides functionality over the assosiative type
  • Queue : provides the queue type functionality
  • Stack : provides the implementation and functionality of a stack

And String as well

  • String : provides string functionality with well-known methods

Documentation

Github Wiki doc is available here: https://github.com/torokmark/utils.sh/wiki

How to install

It requires Bash 4.4 or higher.

Check out the repository and source the file which you want to use.

How to use

source 'queue.sh'
# I create a queue called fruits
queue create fruits
# put an element to queue
queue enqueue fruits apple
queue peek fruits
queue destroy fruits

For more information, take a look at the utils wiki page: wiki

Contribute

  1. If you are intended to contribute the project, please take a look at shell script style guide
  2. Fork this repository
  3. Make your changes
  4. Send an RP