https://github.com/muesli/thunder
BoltDB's Interactive Shell
https://github.com/muesli/thunder
bolt boltdb hacktoberfest interactive shell
Last synced: about 1 year ago
JSON representation
BoltDB's Interactive Shell
- Host: GitHub
- URL: https://github.com/muesli/thunder
- Owner: muesli
- License: mit
- Created: 2017-08-17T03:21:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T04:46:14.000Z (about 5 years ago)
- Last Synced: 2025-04-30T07:49:51.050Z (about 1 year ago)
- Topics: bolt, boltdb, hacktoberfest, interactive, shell
- Language: Go
- Size: 35.2 KB
- Stars: 84
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Thunder
=======
BoltDB's Interactive Shell
## Installation
Make sure you have a working Go environment (Go 1.6 or higher is required).
See the [install instructions](https://golang.org/doc/install.html).
To install Thunder, simply run:
go get github.com/muesli/thunder
## Usage
```
$ thunder somebolt.db
Thunder, Bolt's Interactive Shell
Type "help" for help.
[somebolt.db /] #
```
### List keys in a bucket
```
[somebolt.db /] # ls
OneBucket/
AnotherBucket/
2 keys in bucket
[somebolt.db /] # ls OneBucket/
SubBucket/
SomeKey
2 keys in bucket
```
### Get the value of a key
```
[somebolt.db /] # get OneBucket/SomeKey
Much Value
```
### Set/change the value of a key
```
[somebolt.db /] # put OneBucket/SomeKey "Different Value"
```
### Delete a value or bucket
```
[somebolt.db /] # rm OneBucket/SomeKey
[somebolt.db /] # rm OneBucket/SubBucket
```
### Create a new bucket
```
[somebolt.db /] # mkdir AnotherBucket/NewBucket
```
### Change scope to a different bucket
```
[somebolt.db /] # cd AnotherBucket/NewBucket
```
## Development
[](https://godoc.org/github.com/muesli/thunder)
[](https://travis-ci.org/muesli/thunder)
[](https://goreportcard.com/report/muesli/thunder)