snippy
is a CLI tool designed to help developers manage and utilize code snippets efficiently. With snippy
, you can add, retrieve, edit, and organize your snippets, making code reuse a breeze. It is thoroughly tested (around 80% coverage) and easy to use.
snippy init
- Initialize local snippy sourcesnippy add
- Add a new snippet (get content from stdin, file, clipboard or flag)snippy get
- Get a snippetsnippy list
- List all snippetssnippy search
- Search for a snippet (by name or extension)snippy delete
- Delete a snippetsnippy edit
- Edit a snippet (change extension or content)snippy backup
- Group of commands for managing backupssnippy backup create
- Create a backup filesnippy backup restore
- Restore snippets from a backup file
snippy favorite
- Group of commands for managing favoritessnippy favorite add
- Add a snippet to favoritessnippy favorite delete
- Remove a snippet from favoritessnippy favorite list
- List all favorite snippets
- Languages:
- Go
- Libraries:
- github.com/stretchr/testify
- github.com/urfave/cli/v2
- Colorful output
- Tags for snippets
snippy
is released under the MIT License. See the LICENSE.md file for more details.