Skip to content
Creates bash wrappers for executing installed thor tasks
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
_signatures
features
lib
spec/thorwrapper
MITLICENSE
README.markdown

README.markdown

Thorwrapper

Installation

$ thor install thorwrapper

Run

Iterate installed thor tasks and create bash wrappers in binaries folder

$ thor thorwrapper

Generates executable shell script wrappers. The scripts are placed in the default destination ~/binaries.

$ thor thorwrapper ~/my-binaries

Generates executable shell script wrappers. The scripts are placed in the destination ~/my-binaries

$ thor thorwrapper --tasks git gem

Generates executable shell script wrappers for the 'git' and 'gem' tasks. Scripts are placed in the destination ~/my-binaries

Usage: bash_profile config

# utility function to load binary
load() {
  source "~/binaries/$1.sh"  
}

Usage: auto-load wrapper functions for terminal session

To auto-load the shell scripts and thus the wrapper functions for each terminal session.

$ mate ~/.bash_profile

# add lines to .bash_profile to load bash scripts  
load 'git'
load 'rails'

Open new terminal session. The scripts are auto-loaded and immediately all accessible.

`$ git_project my_proj --return`

`$ gem_project my_gem_proj --return`

Usage: load wrapper functions when needed

$ load git

$ git_project my_proj --return

$ git_update --return

$ gem_publish
=> ERROR (gem script not yet loaded!)

$ load gem

$ gem_project my_gem_proj --return

$ gem_publish

TODO

Suggestions are welcome!

Copyright info

See License

Something went wrong with that request. Please try again.