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
- Host: GitHub
- URL: https://github.com/metafates/nt
- Owner: metafates
- Created: 2022-07-06T12:06:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T12:10:10.000Z (over 3 years ago)
- Last Synced: 2025-02-01T06:12:40.622Z (11 months ago)
- Topics: cli, rust, snippet
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.