A collection of simple general-purpose methods.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 881f39a Dec 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update docs Dec 5, 2018
spec cleanup string handling in capitalize! method Nov 25, 2018
src update docs Dec 5, 2018
.editorconfig initial commit Sep 14, 2018
.gitignore update shards.yml version Nov 26, 2018
.travis.yml setup TravisCI, release and docs badges Sep 18, 2018
LICENSE initial commit Sep 14, 2018
README.md remove release badge Nov 26, 2018
shard.yml update docs Dec 5, 2018

README.md

myutils

As an exercise in writing shards, this is a collection of simple general-purpose methods I use in my command-line applications. Some of this stuff may need tweaking. All of it is open to refactoring as I learn more about Crystal.

Docs

Installation

Add this to your application's shard.yml:

dependencies:
  myutils:
    github: lebogan/myutils

Usage

require "myutils"

choice = agree?("Do you want a directory listing (yn)? ")
status, results = Myutils.run_cmd("ls", "-als") if choice #=> 0, long-directory-listing string

Contributing

  1. Fork it (https://github.com/your-github-user/myutils/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors