Coder Social home page Coder Social logo

gogi's Introduction

gogi: A simple .gitignore template manager

Installation

Deploy Gogi with the following command:

go install github.com/SQUASHD/gogi@latest

the installation process for gogi

Configuration

Initialize Gogi to set up a dedicated template directory within your .config folder:

gogi init

Template Management

using gogi Craft a new, blank template

gogi create <template-name> [-e open in editor] [-b set as base]

Specify your preferred editor for template customization:

gogi editor <editor-name>

Modify an existing template to suit your project needs:

gogi edit <template-name>

Establish a default template for new projects:

gogi base <template-name>

Delete an outdated template

gogi delete <template-name> [--force will override the are you sure prompt]

Generate .gitignore

Generate a .gitignore file using your base template directly in your current project directory:

gogi

If you need a different template you can use gogi generate to generate a new .gitignore file

gogi generate <template-name> [--force will overwrite the current .gitignore]

Or append the current .gitignore with a different template

gogi append <template-name>

Assistance

   alias: Show the list of avaiable command aliases
  append: Append a template to an existing gitignore file
    base: set the base template that you call with gogi with no args
  create: Create a new template
  delete: Delete an existing gitignore alias
    edit: Edit an existing template
  editor: Set the editor to use for editing templates
generate: Generate a gitignore file from the given template
    help: Display help message, or help for a specific command
    list: List all the templates
  rename: Rename a template

Most commands have an alias corresponding to their first letter

a -> append
b -> base
c -> create
d -> delete
e -> edit
g -> generate
h -> help
l -> list
r -> rename

See the whole suite of Gogi commands at any point

gogi help

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.