https://github.com/mrtazz/snipple
snippet managing support tooling for vim-snipple
https://github.com/mrtazz/snipple
Last synced: 5 months ago
JSON representation
snippet managing support tooling for vim-snipple
- Host: GitHub
- URL: https://github.com/mrtazz/snipple
- Owner: mrtazz
- License: mit
- Created: 2023-12-25T18:18:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T21:23:15.000Z (over 2 years ago)
- Last Synced: 2025-06-02T15:03:56.526Z (about 1 year ago)
- Language: Rust
- Size: 61.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snipple
snippet managing support tooling for vim-snipple
## Usage
```
% snipple
Usage: snipple [COMMAND]
Commands:
get Get a specific snippet
list-snippets List all available snippets
version Print version and exit
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
```
```
% snipple list
go/main.snippet
go/actions-worflow.snippet
go/config-package.snippet
go/Makefile.snippet
go/test.snippet
go/read-yaml-file.snippet
notes/ref-template.snippet
ruby/test.snippet
```
```
% snipple get go/test.snippet
package test
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestSomething(t *testing.T) {
assert := assert.New(t)
tests := map[string]struct {
input string
sep string
want []string
}{
"simple": {input: "a/b/c", sep: "/", want: []string{"a", "b",
"c"}},
}
for name, tc := range tests {
t.Run(name, func(t *testing.T) {
// execute test logic here
assert.Equal(nil, err)
})
}
}
```