Giter Site home page Giter Site logo

fairy's Introduction

Fairy

The shell scripts I ever programmed are just like little fairies who get jobs done magically. May you feel helpful with them.

While the scripts in this repository are more or less application-specific, you may checkout the Fairy-commons repository for common script libraries.

About This Repository

This repository contains submodules as dependencies. Therefore, you should run the following command to get the complete source code:

git clone --recursive https://github.com/streamjoin/fairy.git

When there are updates of the submodules at the remote of this repository, use the following command to pull the changes:

git submodule update --init --recursive

Use the following command to synchronize the submodules with their corresponding remote repositories:

git submodule update --init --remote

Resources

Before looking into the following references, you may consider leveraging the bootstrapping facilities crafted based on my years of experience to initiate your shell programming in a more elegant way.

fairy's People

Contributors

streamjoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

fairy's Issues

Support positional arguments

Need to provide a general approach to support positional arguments in bash scripts.

To achieve this, two key points need to do:

  1. Use || to concatenate all arg_set_opt_var entries with the tail to be arg_set_pos_var (TODO). To this end, we need arg_set_opt_var to return non-zero for no value assignment.

  2. In arg_set_pos_var, use one global variable __POS_ARG_CURSOR to count the positional index, and assign positional argument value to global variables POS_ARG_VAR_XX where XX is expanded from __POS_ARG_CURSOR.

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.