Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xmukesh/snipli
✨ A command-line interface for quickly sharing code snippets of your local files
https://github.com/0xmukesh/snipli
cli gist oclif typescript
Last synced: 13 days ago
JSON representation
✨ A command-line interface for quickly sharing code snippets of your local files
- Host: GitHub
- URL: https://github.com/0xmukesh/snipli
- Owner: 0xMukesh
- License: mit
- Created: 2022-04-17T07:16:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T13:03:47.000Z (almost 2 years ago)
- Last Synced: 2024-12-15T17:11:58.831Z (18 days ago)
- Topics: cli, gist, oclif, typescript
- Language: TypeScript
- Homepage: https://www.snipli.xyz
- Size: 561 KB
- Stars: 147
- Watchers: 1
- Forks: 2
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦄 snipli
![](https://user-images.githubusercontent.com/90365542/166135580-7483919c-c44e-45be-bdf0-3b259292f341.png)
✨ A command-line interface for quickly sharing code snippets for your local files
- [Usage](#usage)
- [Commands](#commands)# Usage
```bash
$ npm install -g snipli
$ snipli COMMAND
Running command...
$ snipli (--version)
snipli/1.0.0 win32-x64 node-v16.13.0
$ snipli --help [COMMAND]
USAGE
$ snipli COMMAND
...
```# Commands
- [`snipli create`](#snipli-create)
- [`snipli delete`](#snipli-delete)
- [`snipli edit`](#snipli-edit)
- [`snipli help [COMMAND]`](#snipli-help-command)
- [`snipli id`](#snipli-id)
- [`snipli login`](#snipli-login)
- [`snipli logout`](#snipli-logout)
- [`snipli read`](#snipli-read)
- [`snipli whoami`](#snipli-whoami)## `snipli create`
🦄 Create a new snippet of your local file on gist.github.com
```
USAGE
$ snipli create -f -d [-p]FLAGS
-d, --description= (required) Description of the gist
-f, --file= (required) Path to the file of which you want to create a gist
-p, --[no-]public Whether the gist should be public or notDESCRIPTION
🦄 Create a new snippet of your local file on gist.github.comEXAMPLES
$ snipli create --file=code.ts --description='Need help at line 59 of file code.ts' --public
```## `snipli delete`
🚚 Delete a gist
```
USAGE
$ snipli delete -iFLAGS
-i, --id= (required) ID of the gist which is to be deletedDESCRIPTION
🚚 Delete a gistEXAMPLES
$ snipli delete --id=bfce776b3ad1145f764d89c296fec605
```## `snipli edit`
✏ Edit an existing gist
```
USAGE
$ snipli edit -i -f -d [-p]FLAGS
-d, --description= (required) The description of the Gist
-f, --file= (required) The path of the file which has the edited content
-i, --id= (required) ID of the Gist which you are going to edit
-p, --[no-]public Whether the Gist is public or notDESCRIPTION
✏ Edit an existing gistEXAMPLES
$ snipli edit --id=ca22a324f761cd241ace4c9a35286496 --file=updated-code.ts --description='Updated the code' --public
```## `snipli help [COMMAND]`
Display help for snipli.
```
USAGE
$ snipli help [COMMAND] [-n]ARGUMENTS
COMMAND Command to show help for.FLAGS
-n, --nested-commands Include all nested commands in the output.DESCRIPTION
Display help for snipli.
```## `snipli id`
💡 Get the ID of a gist from it's link
```
USAGE
$ snipli id -lFLAGS
-l, --link= (required) Link of the gistDESCRIPTION
💡 Get the ID of a gist from it's linkEXAMPLES
$ snipli id --link=https://gist.github.com/Kira272921/bfce776b3ad1145f764d89c296fec605
```## `snipli login`
🔑 Login into snipli via GitHub
```
USAGE
$ snipli loginDESCRIPTION
🔑 Login into snipli via GitHubEXAMPLES
$ snipli login
```## `snipli logout`
📤 Logout from snipli
```
USAGE
$ snipli logoutDESCRIPTION
📤 Logout from snipliEXAMPLES
$ snipli logout
```## `snipli read`
📖 Read a gist locally using the configured editor
```
USAGE
$ snipli read -iFLAGS
-i, --id= (required) ID of the GistDESCRIPTION
📖 Read a gist locally using the configured editorEXAMPLES
$ snipli read --id=ca22a324f761cd241ace4c9a35286496
```## `snipli whoami`
👀 Get the info about the logged in user
```
USAGE
$ snipli whoamiDESCRIPTION
👀 Get the info about the logged in userEXAMPLES
$ snipli whoami
```## Authors
### Mukesh
- Twitter: [@0xMukesh](https://twitter.com/0xMukesh)
### Avneesh Agarwal
- Website: https://www.avneesh.tech/
- Twitter: [@avneesh0612](https://twitter.com/avneesh0612)
- Github: [@avneesh0612](https://github.com/avneesh0612)
- LinkedIn: [@avneesh0612](https://www.linkedin.com/in/avneesh0612)