An open API service indexing awesome lists of open source software.

https://github.com/metafates/nt

📓 Simple cli snippet manager
https://github.com/metafates/nt

cli rust snippet

Last synced: 9 months ago
JSON representation

📓 Simple cli snippet manager

Awesome Lists containing this project

README

          

# nt

Minimal cli snippet manager
inspired by [boom](https://github.com/holman/boom)

## Usage

```
USAGE:
nt

OPTIONS:
-h, --help Print help information
-V, --version Print version information

SUBCOMMANDS:
get Get a record
help Print this message or the help of the given subcommand(s)
list List all records
remove Remove a record
set Set a new record
```

## Example

```bash
$ nt set magic 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
'magic' set to 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

# if no value is given, the value is read from the clipboard
$ nt set num
'num' set to contents from the clipboard

$ nt get num
1

$ nt get num --copy
copied to clipboard

$ nt remove num # or `nt rm`
'num' removed

$ nt list # or `nt ls`
'magic' - 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

'greeting' - 'hello!'
```

> Data is stored in the default config directory under `nt` folder.