Giter VIP home page Giter VIP logo

dotignore's Introduction

dotignore

dotignore is a CLI tool for generating .gitignore files.

Installation

Linux

wget https://github.com/bariscanyilmaz/dotignore/releases/download/[version]/dotignore-[version]-linux-x64.tar.gz

sudo mkdir -p /usr/local/dotignore && sudo tar -C /usr/local/dotignore -xzf dotignore-[version]-linux-x64.tar.gz

export PATH=$PATH:/usr/local/dotignore

Usage

Create .gitignore files

Create your .gitignore files with init verb

dotignore init <template>

dotignore-init-value

Also, init is a defeault verb and you can omit it

dotignore <template>

dotignore-value

When you use init verb be careful, it creates a new or overwrite existing .gitignore file. If you want to just add new template to existing one, add --append or -a option.

dotignore dotnet --append

List available .gitignore templates

List your dotignore files with ls verb

dotignore ls 

dotignore-ls

Also, ls has -q or --query option for searching your template

dotignore ls -q <template>

dotignore-ls-q

dotignore's People

Contributors

bariscanyilmaz avatar halilkocaoz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

halilkocaoz

dotignore's Issues

Wrong template selection

Problem

When I type dotignore init c, it creates C# template but I want C template.

What cause this

Dotignore finds the first template which contains the parameter.

Solution or Suggestion

Templates should be ordered by their parameter consistency rate.
Length of contained parameter in template name / length of tempalte name

feature:Append Option

Add new feature append option

when you run dotignore, if .gitignore file doesn't exist it creates a new file, if it does it overwrite previous file. So adding append option like --apppend or -a will prevent overwriting to existing file.

Refactor test

Refactor CreateIngoreFileAsync method's test.
Use System.IO.Abstraction.TestingHelpers for mocking

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.