Git Product home page Git Product logo

bashful's People

Contributors

jmcantrell avatar jwerle 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bashful's Issues

usage command example / questions

@jmcantrell First of all, thank you for sharing your work!

Could you please give a pretty detailed example of usage command?

I guess I have to manually check if each parameter/option has been passed or not, then call usage accordly, isn't it?

Thank you

License?

What license are these wonderful libraries under?

Simple example of how to use functions?

Hey... Is there a wiki or blog post on this collection? I've got a bunch of small questions and wasn't sure where to ask them:

  • Can these be used from zsh ?
  • So is the way to use these is to source them in a file? Or do I source them in my .bashrc or something like that?
  • Also, do you know if there are similar collections of bash utils around, as I think this is an awesome idea, but this is the only collection of reusable bash scripts i've found....

Thanks!

Wrapper for RC != 0

Sometimes it would be very handy to have a function like this:

check_rc()
{
  if [[ $? -gt 0 ]]; then
    if [[ ${1} != "" ]]; then
      echo -e "${@}"
    fi
    exit 1
  fi
}

I've used it a couple of times now in my own coding, allowing critical actions to abort scripts very handy.

startup_server 2> error.log
check_rc "Error: Could not start server, please check error.log!"

Add "multiple" choice

Sometimes it would be good to allow several choices. (Separated by comma?)

A new arg for minimal and maximal amount would be handy too!

Add "suggested" input

Something that suggests values like choice, but also allows for a completely user-input.
(One more choice for custom)

Global overwrite of stdout and stderr

It would be great to have the possibility to enable 2> && > redirection with a parameter for all execution commands. This allows to write all errors or output to a target file without needing to keep putting it in the command or function call. (something like execute_output or execute_error, without argument gets the current destination (defaults to stdout and stderr) and with sets the new target).

Unable to type on the script

Good day!

I'm using Mac OSX, Yosemite, running this script via Term2. Is this an issue on my
part that I am unable to type anything, even pressing i (I'm not good with vi, but i puts vi in insert mode). I am able to press keys, but it only activates the hotkeys (like h for help).

bashful2

Request: documentation in github

Request
Could we get documentation in github as part of READMEs or a Wiki?
I find it easier to read documentation that way and I think people would find the project more appealing if they could read about the libraries functions before cloning.

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.