30 lines
878 B
Markdown
30 lines
878 B
Markdown
# snp
|
|

|
|
<img src="https://proxy.dandaedre.com/gitea/repo-avatars/30-fed01296b47bdd2e84f8f0a1a96e4094" alt="drawing" width="140" align="right"/>
|
|
|
|
A simple cli utility to manage snippets, while it was created to be used with Helix, it can work with any tool integrating input from stdout
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
To create a new snippet and edit it immediately
|
|
$ snp snippet_name -c -e list of default tokens
|
|
|
|
To edit the content of a snippet
|
|
$ snp snippet_name -e
|
|
|
|
To edit the whole snippet (allow for editing of name and list of args)
|
|
$ snp snippet_name -E
|
|
|
|
To delete a snippet
|
|
$ snp snippet_name -d
|
|
|
|
To use a snippet
|
|
$ snp snippet_name
|
|
```
|
|
|
|
## Testing
|
|
|
|
For reasons too long to explain here, test must be run with the optional feature ``--feature "test"`.
|
|
Failure to do so will result in the editor popping in during tests.
|