All Projects → DannyBen → runfile

DannyBen / runfile

Licence: MIT license
Command line for your projects

Programming Languages

ruby
36898 projects - #4 most used programming language
Gherkin
971 projects

Projects that are alternatives of or similar to runfile

Wordmove
Multi-stage command line deploy/mirroring and task runner for Wordpress
Stars: ✭ 1,791 (+8040.91%)
Mutual labels:  gem, task-runner
ngx upstream jdomain
An asynchronous domain name resolution module for nginx upstream.
Stars: ✭ 71 (+222.73%)
Mutual labels:  task-runner
flyyer-ruby
Ruby helpers to create https://cdn.flyyer.io URLs | Og:Image as a Service
Stars: ✭ 13 (-40.91%)
Mutual labels:  gem
taskctl
Concurrent task runner, developer's routine tasks automation toolkit. Simple modern alternative to GNU Make 🧰
Stars: ✭ 237 (+977.27%)
Mutual labels:  task-runner
grape-jwt-authentication
A reusable Grape JWT authentication concern
Stars: ✭ 31 (+40.91%)
Mutual labels:  gem
lockup
Lockup Gem
Stars: ✭ 111 (+404.55%)
Mutual labels:  gem
google holiday calendar
Get holidays via Google Calendar.
Stars: ✭ 21 (-4.55%)
Mutual labels:  gem
myrmidon
A rofi task / command executor
Stars: ✭ 82 (+272.73%)
Mutual labels:  task-runner
The-Ruby-Workshop
A New, Interactive Approach to Learning Ruby
Stars: ✭ 26 (+18.18%)
Mutual labels:  ruby-cli
madness
Instant Markdown Server
Stars: ✭ 54 (+145.45%)
Mutual labels:  gem
acts as inheritable
Inheritable functionality for ActiveRecord models.
Stars: ✭ 24 (+9.09%)
Mutual labels:  gem
hscode
📘🖥 A command line reference tool for http status codes.
Stars: ✭ 31 (+40.91%)
Mutual labels:  gem
git-reclone
reclone your git repo
Stars: ✭ 11 (-50%)
Mutual labels:  gem
acts as user
A gem which handles multiple types of users on a rails app
Stars: ✭ 24 (+9.09%)
Mutual labels:  gem
nagios check
Ruby Nagios Check Integration
Stars: ✭ 13 (-40.91%)
Mutual labels:  gem
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (-9.09%)
Mutual labels:  gem
dhash-vips
vips-powered ruby gem to measure images similarity, implementing dHash and IDHash algorithms
Stars: ✭ 75 (+240.91%)
Mutual labels:  gem
Vanhiupun.github.io
🏖️ Vanhiupun's Awesome Site ==> another theme for elegant writers with modern flat style and beautiful night/dark mode.
Stars: ✭ 57 (+159.09%)
Mutual labels:  gem
gow
Missing watch mode for Go commands. Watch Go files and execute a command like "go run" or "go test"
Stars: ✭ 343 (+1459.09%)
Mutual labels:  task-runner
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+100%)
Mutual labels:  gem

Runfile - command line for your projects

Gem Version Build Status Maintainability


A beautiful command line application framework
Rake-inspired - Docopt inside


Runfile lets you create command line applications in a way similar to Rake, but with the full power of Docopt command line options.

You create a Runfile, and execute commands with run command arguments -and --flags.

Runfile Demo

Quick Start

$ run new        # create a new Runfile
$ run --help     # show the usage patterns
$ vi Runfile     # edit the Runfile

Example

The most minimal Runfile looks like this:

usage  "greet <name>"
action :greet do |args|
  puts "Hello #{args['<name>']}" 
end

You can then run it by executing this command:

$ run greet Luke
Hello Luke

Executing run without parameters, will show the usage patterns:

$ run
Usage:
  run greet <name>
  run (-h|--help|--version)

Executing run --help will show the full help document (docopt)

$ run --help
Runfile 0.0.0

Usage:
  run greet <name>
  run (-h|--help|--version)

Options:
  -h --help
      Show this screen

  --version
      Show version

Documentation

Breaking changes in 0.12.0

Note that version 0.12.0 removes several commands from the DSL. If you were using any of the Colsole commands (say, resay, etc.), or any of the run, run_bg commands, you will have to adjust your Runfile since they are no longer available.

For convenience, you can simply require runfile/compatibility at the top of your Runfile, to still have this functionality included.

More info and alternative solutions in this pull request.

Contributing / Support

If you experience any issue, have a question or a suggestion, or if you wish to contribute, feel free to open an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].