Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/gist-generator
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-04-23T13:45:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T20:54:50.000Z (about 4 years ago)
- Last Synced: 2024-12-15T03:13:52.124Z (about 1 month ago)
- Topics: cli, generator
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 {} \;
```