1.1.22 ā€¢ Published 2 years ago

snipli v1.1.22

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

šŸ¦„ snipli

npm.io

āœØ A command-line interface for quickly sharing code snippets for your local files

Usage

$ 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

šŸ¦„ Create a new snippet of your local file on gist.github.com

USAGE
  $ snipli create -f <value> -d <value> [-p]

FLAGS
  -d, --description=<value>  (required) Description of the gist
  -f, --file=<value>         (required) Path to the file of which you want to create a gist
  -p, --[no-]public          Whether the gist should be public or not

DESCRIPTION
  šŸ¦„ Create a new snippet of your local file on gist.github.com

EXAMPLES
  $ snipli create --file=code.ts --description='Need help at line 59 of file code.ts' --public

snipli delete

šŸšš Delete a gist

USAGE
  $ snipli delete -i <value>

FLAGS
  -i, --id=<value>  (required) ID of the gist which is to be deleted

DESCRIPTION
  šŸšš Delete a gist

EXAMPLES
  $ snipli delete --id=bfce776b3ad1145f764d89c296fec605

snipli edit

āœ Edit an existing gist

USAGE
  $ snipli edit -i <value> -f <value> -d <value> [-p]

FLAGS
  -d, --description=<value>  (required) The description of the Gist
  -f, --file=<value>         (required) The path of the file which has the edited content
  -i, --id=<value>           (required) ID of the Gist which you are going to edit
  -p, --[no-]public          Whether the Gist is public or not

DESCRIPTION
  āœ Edit an existing gist

EXAMPLES
  $ 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 -l <value>

FLAGS
  -l, --link=<value>  (required) Link of the gist

DESCRIPTION
  šŸ’” Get the ID of a gist from it's link

EXAMPLES
  $ snipli id --link=https://gist.github.com/Kira272921/bfce776b3ad1145f764d89c296fec605

snipli login

šŸ”‘ Login into snipli via GitHub

USAGE
  $ snipli login

DESCRIPTION
  šŸ”‘ Login into snipli via GitHub

EXAMPLES
  $ snipli login

snipli logout

šŸ“¤ Logout from snipli

USAGE
  $ snipli logout

DESCRIPTION
  šŸ“¤ Logout from snipli

EXAMPLES
  $ snipli logout

snipli read

šŸ“– Read a gist locally using the configured editor

USAGE
  $ snipli read -i <value>

FLAGS
  -i, --id=<value>  (required) ID of the Gist

DESCRIPTION
  šŸ“– Read a gist locally using the configured editor 

EXAMPLES
  $ snipli read --id=ca22a324f761cd241ace4c9a35286496

snipli whoami

šŸ‘€ Get the info about the logged in user

USAGE
  $ snipli whoami

DESCRIPTION
  šŸ‘€ Get the info about the logged in user

EXAMPLES
  $ snipli whoami

Authors

Kira

Avneesh Agarwal

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago