Giter VIP home page Giter VIP logo

shellwrapper's Introduction

Shellwrapper

This script is a wrapper to run several shell scripts located in a folder.

See example.sh for an example how to call. A full usage example is available in https://github.com/undpaul/update_sh.

Features

  • Running scripts in alphabetical order
  • Running .sh files as subshells (using sh -e)
  • Running .exportsh files as sourced shells (using source)
  • Run tag specific files only if the tag is passed (e.g. myfile.mytag.sh)

Arguments

  1. The relative or absolute path of the folder the scripts are located.
  2. (optional) a string that is used as tag. Multiple tags can be separated by comma ","

Our use case

We use that wrapper to call several scripts, that are made to update our Drupal sites. Therefore we place drush commands (and some others) in different files to structure them in topic groups and in an alphabetical/numerial order.

The tag is used to run scripts only on a specific stage (like local, integra or live).

Contribution

You are very welcome to contribute to the code, fork the repository, file issues and especially: use the script.

Licence

The code is licensed under GPL2 (see LICENSE.txt).

Contact

Originally created by Johannes Haseitl - [email protected]

undpaul GmbH - die Drupal-Spezialisten

http://www.undpaul.de

shellwrapper's People

Contributors

derhasi avatar aschiwi avatar lucastockmann avatar

Stargazers

Tobias avatar Pedro González Serrano avatar SteffenR avatar Christian López Espínola avatar

Watchers

Stefan Borchert avatar  avatar  avatar Mirko Haaser avatar Christian López Espínola avatar James Cloos avatar

Forkers

lucastockmann

shellwrapper's Issues

Allow dot syntax tags to be split up to several tags

Currently there are several tags allowed with comma-separated lists. A nice feature would be to allow dot syntax tags to be split up into comma-separated tags to cover all sub-tags automatically. This is needed for example when you want to narrow down the passed tag list, but want to ensure, that each single tag is invoked as well as the original tag.

Example 1:

Tag: some.tag
Result: some,tag,some.tag

Example 2:

Tag: some.other.tag
Result: some,other,tag,some.other.tag

Proposal:

shellwrapper.sh --split-tags my.tag

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.