michaeldfallen / butler Goto Github PK
View Code? Open in Web Editor NEWRemembers those project specific long commands for you. Let the butler do it.
License: MIT License
Remembers those project specific long commands for you. Let the butler do it.
License: MIT License
Hi,
On my Mac (10.10.3) executing butler returns an error "line 44: gsha256sum: command not found". I was able to fix it by changing gsha256sum into shasum
butler
starts with
#! /usr/bin/env sh
However, on Debian and Ubuntu, sh
is aliased to dash
, not bash
. That means, invoking butler
yields:
$ ./butler
./butler: 8: ./butler: [[: not found
./butler: 16: ./butler: [[: not found
./butler: 21: ./butler: source: not found
./butler: 23: ./butler: butler_exec: not found
A fix would be the shebang line
#! /usr/bin/env bash
However, I do not know, if zsh
users will then encounter problems.
It's pretty common to put scripts used for handling complex tasks in the bin
folder. It would be really useful if these scripts were available for running through butler.
Not because it makes them easier to run but because having a single place to go to when looking to run some task is easier than remembering which tasks are in the butlerfile and which are in the bin folder.
==> Installing butler from michaeldfallen/formula
Warning: Calling Formula.sha1 is deprecated!
Use Formula.sha256 instead.
/usr/local/Library/Taps/michaeldfallen/homebrew-formula/butler.rb:6:in `<class:Butler>'
Please report this to the michaeldfallen/formula tap!
Warning: Calling SoftwareSpec#sha1 is deprecated!
Use SoftwareSpec#sha256 instead.
/usr/local/Library/Taps/michaeldfallen/homebrew-formula/butler.rb:6:in `<class:Butler>'
Please report this to the michaeldfallen/formula tap!
Warning: Calling Resource#sha1 is deprecated!
Use Resource#sha256 instead.
/usr/local/Library/Taps/michaeldfallen/homebrew-formula/butler.rb:6:in `<class:Butler>'
Please report this to the michaeldfallen/formula tap!
==> Downloading https://bintray.com/artifact/download/michaelallen/homebrew-releases/butler-0.7.tar.gz
==> Downloading from https://dl.bintray.com/michaelallen/homebrew-releases/butler-0.7.tar.gz
######################################################################## 100.0%
Warning: Calling Pathname#sha1 is deprecated!
Use Pathname#sha256 instead.
/usr/local/Library/Homebrew/extend/pathname.rb:320:in `verify_checksum'
==> Bash and Zsh completion
To enable completion add:
source "$(butler --init-completion)"
To your ~/.bashrc or ~/.zshrc
๐บ /usr/local/Cellar/butler/0.7: 9 files, 8.7K, built in 2 seconds
It would be very useful to have the ability to describe what a command does, in this way the butlerfile could act as documentation of how to use the repo. Something like this:
[short name]: [long command] # [comment]
so tab completion would show:
> butler t<tab>
test # Runs all tests
test-int # Runs integration tests
...
and running butler with no commands would show:
> butler
usage:
butler [COMMAND] # Run a command defined in your butlerfile
butler # List all known commands
commands:
run # Starts the app on port 5000
install # Installs dependencies listed in requirements.txt and clones submodules
test # Runs all tests
test-int # Runs integration tests
...
On OS X 10.10.3, installing and running the 'butler' command fails, see below.
$ brew install butler
==> Installing butler from michaeldfallen/homebrew-formula
==> Downloading https://github.com/michaeldfallen/butler/archive/0.5.tar.gz
==> To enable completion add:
==> source "$(butler --init-completion)"
==> To your ~/.bashrc or ~/.zshrc
๐บ /usr/local/Cellar/butler/0.5: 8 files, 36K, built in 2 seconds
$ butler
/usr/local/bin/butler: line 14: greadlink: command not found
/usr/local/bin/butler: line 21: /usr/local/bin/butler-base.sh: No such file or directory
I tried to use echo -e
to print colored output and newlines, but it is printed as if the -e
option was not used.
Command example: echo -e "\n\033[0;31mHooks Disabled\033[0m\n"
Output: n033[0;31mHooks Disabled033[0mn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.