gh-gitignore

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 1 Imported by: 0

README

gh-gitignore

A GitHub CLI extension to generate .gitignore files.

The .gitignore templates are obtained from the GitHub API (https://docs.github.com/en/rest/gitignore).


📦 Installation

Requirements
Install
gh extension install Shresht7/gh-gitignore

💻 Usage

Invoke the cli extension like so:

gh gitignore <command>

To create a gitignore file:

gh gitignore create Node

Usage Demonstration

⌨️ Commands

create

Create a gitignore file

Alias

new, add, init, clone

Usage
gh-gitignore create [flags]
Flags
Flag Type Description Default
--dest, -d string Destination of the gitignore file .gitignore
--overwrite, -o bool Overwrite the gitignore file false
Examples
  gh gitignore create Go
  gh gitignore init Go Python
  gh gitignore create Go Python -d .gitignore
list

Lists all gitignore templates

Usage
gh-gitignore list
Examples
  gh gitignore list
view

View a gitignore file

Alias

show, get

Usage
gh-gitignore view
Examples
  gh gitignore view Go
  gh gitignore view Go Python

📜 License

This software is licensed under the MIT License. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
docs
generator command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL