Code Monkey home page Code Monkey logo

lala's Introduction

Lala

A pattern-based ignore generator.

Lala is a command line program for generating common, pattern-based ignore files. Lala leverages the well-built templates provided in the github/gitignore repository using the the GitHub API. Lala was inspired by karan/joe.

Installation

Lala is meant to be installed as a global npm module, making the program lala available everywhere in your terminal:

$ npm install -g lala

Help

For command line help:

$ lala help

Usage

List Ignore Templates

To get a list of available ignore templates:

# Lists available ignore templates
$ lala list

Output Ignore Templates

Lala can output both individual and combinations of ignore templates. Lala outputs them as console messages which can be piped into another file for use.

Command line pattern:

lala ignore <template...>

As a real-world example, let's build an ignore file for a Git repository containing a Visual Studio solution with ASP.NET/C# projects that leverage node/npm tooling:

# Create a file containing the ignore pattern templates for a Git repository
$ lala ignore visualstudio node > .gitignore

# Or create the file by individually appending each ignore pattern template
$ lala ignore visualstudio >> .gitignore
$ lala ignore node >> .gitignore

# Or use a Mercurial repository instead
$ lala visualstudio node > .hgignore

Configuration

Lala uses the GitHub API to pull down the latest templates from the github/gitignore repository. The GitHub API allows up to 60 requests per hour, unauthenticated, for a given IP address. In all but the most extreme usage scenarios you would have a difficult time exceeding that rate limit with Lala alone.

View Current Rate Limit

To see your rate limit for the current configuration of Lala:

# Check your rate limit
$ lala limit

Configure GitHub API Authorization

In the event that you need to increase your rate limit beyond what is provided anonymously, you can set your GitHub username and password or API token:

# Run the configuration wizard
$ lala config

# Or bypass the configuration wizard and send the values by command line parameters
$ lala config -u <GitHub_username> -p <GitHub_password_or_token>

lala's People

Contributors

jmfirth avatar

Watchers

 avatar James Cloos avatar  avatar

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.