Skip to content

Commit

Permalink
Merge pull request #17 from halilkocaoz/installation-linux
Browse files Browse the repository at this point in the history
update for linux installation
  • Loading branch information
bariscanyilmaz authored Sep 15, 2021
2 parents 2917b2a + 08161d4 commit 777d01a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Pack to zip for Windows
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name}.tar.gz" "$release_name"
tar czvf "${release_name}.tar.gz" -C "$release_name" .
fi
# Delete output directory
rm -r "$release_name"
Expand Down
31 changes: 20 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,53 @@
# dotignore

`dotignore` is a CLI tool for generating .gitignore files.
`dotignore` is a CLI tool for generating .gitignore files.

# Usage
## Installation

## Create .gitignore files
### Linux

```sh
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 dotignore files with init verb

```bash
dotignore init <template>
```
![dotignore-init-value](https://user-images.githubusercontent.com/30300440/130862256-998b5e65-8f01-4e98-8e60-a729f30ff91e.gif)



![dotignore-init-value](https://user-images.githubusercontent.com/30300440/130862256-998b5e65-8f01-4e98-8e60-a729f30ff91e.gif)

Also, init is defeault verb and you can omit it

```bash
dotignore <template>
```
![dotignore-value](https://user-images.githubusercontent.com/30300440/130862290-a9182421-0168-4d8e-a697-a7c5be2ac1a9.gif)


![dotignore-value](https://user-images.githubusercontent.com/30300440/130862290-a9182421-0168-4d8e-a697-a7c5be2ac1a9.gif)

## List available .gitignore templates
### List available .gitignore templates

List your dotignore files with ls verb

```bash
dotignore ls
```
![dotignore-ls](https://user-images.githubusercontent.com/30300440/130862328-38127d04-3aa1-45bd-a4d0-2117dc1fef18.gif)


![dotignore-ls](https://user-images.githubusercontent.com/30300440/130862328-38127d04-3aa1-45bd-a4d0-2117dc1fef18.gif)

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

```bash
dotignore ls -q <template>
```

![dotignore-ls-q](https://user-images.githubusercontent.com/30300440/130862991-42fe1177-9bff-41e6-b85b-138be7a412c9.gif)

0 comments on commit 777d01a

Please sign in to comment.