hasit / bolter Goto Github PK
View Code? Open in Web Editor NEWCommand-line app for viewing BoltDB file in your terminal
License: MIT License
Command-line app for viewing BoltDB file in your terminal
License: MIT License
Are there any plans for supporting nested buckets?
User should be able to use bolter
to view files on remote location (via ssh perhaps?).
Proposal:
Use a -r
flag to denote remote file like so.
bolter -fr user@domain:/path/to/file
cc @ross-spencer, @nouney
How do we test an interactive system like this one? Any thoughts?
when I use go get -u github.com/hasit/bolter. an error has occurred.
go get: installing executables with 'go get' in module mode is deprecated.
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
I use go version go1.17.1 windows/amd64. how to fix it?
For example,
$ bolter -f emails.db -b [email protected]
prints nothing because we are looking for nested buckets after '.'.
Update the README.md file to reflect the new changes of the interactive mode update.
There is a little bug with my PR #1 and the "dot notation". If the name given to -b
ends with a dot, the output will show an empty bucket.
Example:
$ bolter -f my.db -b templates.files
Bucket: templates.files
+---------+---------+
| KEY | VALUE |
+---------+---------+
| storage | default |
+---------+---------+
$ bolter -f my.db -b templates.
Bucket: templates.
+---------+---------+
| KEY | VALUE |
+---------+---------+
+---------+---------+
-m
flag should accept json
, csv
or xml
values to print output in.
Hi,
it's strange the -b bucket in README seemingly disappears?
$./bolter
NAME:
bolter - view boltdb file interactively in your terminal
VERSION:
2.0.1
USAGE:
bolter [global options]
GLOBAL OPTIONS:
--file FILE, -f FILE boltdb FILE to view
--help, -h show help
--version, -v print the version
In readme, there is:
--bucket BUCKET, -b BUCKET boltdb BUCKET to view
But when I run bolter -h
, there is no description about -b
:
$ bolter -h
NAME:
bolter - view boltdb file interactively in your terminal
VERSION:
2.0.0
USAGE:
bolter [global options]
GLOBAL OPTIONS:
--file FILE, -f FILE boltdb FILE to view
--help, -h show help
--version, -v print the version
AUTHOR:
Hasit Mistry <[email protected]>
COPYRIGHT:
(c) 2016 Hasit Mistry
If I add a -b
in the command, I got an error:
$ bolter -f /tmp/b.db -b data
Incorrect Usage. flag provided but not defined: -b
pull request 22 looks suspiciously like the error I am seeing. I first tried running using go get / go install github.com/hasit/bolter (not really sure why I found that tip on youtube for a different go command line tool, it wasn't in that tools readme either).
go install results in
cannot use []*cli.Author{…} (value of type []*cli.Author) as []cli.Author value in assignment
cloning the repo and trying to build it gets the slightly more verbose
.\bolter.go:45:16: cannot use []*cli.Author{…} (value of type []*cli.Author) as []cli.Author value in assignment
git reset head^ --hard
bolter now builds
go version go1.20.1 windows/amd64
so it looks like I'm a minor version behind, wouldn't think that would break me.
x-MacBook-Pro:go apple$ cd $GOPATH/src/github.com/hasit/bolter
x-MacBook-Pro:bolter apple$ ls
LICENSE README.md assets bolter.go sample-db
x-MacBook-Pro:bolter apple$ go run bolter.go
# command-line-arguments
./bolter.go:70: cannot use func literal (type func(*cli.Context) error) as type func(*cli.Context) in assignment
x-MacBook-Pro:bolter apple$ go build
# github.com/hasit/bolter
./bolter.go:70: cannot use func literal (type func(*cli.Context) error) as type func(*cli.Context) in assignment
x-MacBook-Pro:bolter apple$ go build bolter.go
# command-line-arguments
./bolter.go:70: cannot use func literal (type func(*cli.Context) error) as type func(*cli.Context) in assignment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.