Coder Social home page Coder Social logo

butler's People

Contributors

michaeldfallen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

morristech

butler's Issues

gsha256sum: command not found

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 is incompatible with sh on Debian/Ubuntu

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.

Support scripts in a bin folder

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.

Multiple deprecation issues in homebrew

==> 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

Support self-documenting butlerfiles

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
...

Butler fails to run

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

################################################################## 100.0%

==> 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.