Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewpetrochenkov/gist-generator

:octocat: github gist generator
https://github.com/andrewpetrochenkov/gist-generator

cli generator

Last synced: 4 days ago
JSON representation

:octocat: github gist generator

Awesome Lists containing this project

README

        

[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/gist-generator.svg?maxAge=3600)](https://pypi.org/project/gist-generator/)
[![](https://img.shields.io/npm/v/gist-generator.svg?maxAge=3600)](https://www.npmjs.com/package/gist-generator)[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/gist-generator/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/gist-generator/actions)

### Installation
```bash
$ [sudo] pip install gist-generator
```

```bash
$ [sudo] npm i -g gist-generator
```

#### How it works
+ description as folder name. or `description.txt` if exist
+ `gitignore` supported
+ clones `.git` after gist creation
+ skip if `.git` exists

#### Config
```bash
$ export GITHUB_TOKEN=""
```

#### Examples
```bash
$ gist-generator .
```

private gist
```bash
$ gist-generator -p .
```

create multiple gists
```bash
$ find ~/git/gists -type d -mindepth 1 -maxdepth 1 -exec gist-generator {} \;
```


readme42.com