https://github.com/idf/snippyt
A command line snippet management for modern developers.
https://github.com/idf/snippyt
command-line snippet
Last synced: about 2 months ago
JSON representation
A command line snippet management for modern developers.
- Host: GitHub
- URL: https://github.com/idf/snippyt
- Owner: idf
- License: bsd-3-clause
- Created: 2017-03-08T01:12:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T22:53:43.000Z (over 4 years ago)
- Last Synced: 2024-10-14T06:19:47.445Z (9 months ago)
- Topics: command-line, snippet
- Language: Python
- Size: 9.77 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snippyt {:ledger:}
A command line snippet management for modern developers.# Usage
```bash
Usage:
snip
snip -cExamples:
snip helloworld -c "name=World;"
```# Install
## pip```bash
pip3 install snippyt
```
## Manual
```bash
git clone https://github.com/idf/snippyt.git
cd snippyt
sudo python setup.py install
```# Add more snippets
The default path where snippets go is `~/.snippyt`. For example:
```
mkdir ~/.snippyt
echo "{{ firstname }} {{ lastname }}'s own snippet" > ~/.snippyt/sample
snip sample -c "firstname=John;lastname=Tenniel"
# John Tenniel's own snippet
```# Features
* Basic plain text snippet
* kwargs in CLI
* Show for missing entries# Development
* Python 3.6
```
pip install -r requirements.txt
```