Coder Social home page Coder Social logo

bolter's People

Contributors

av-elier avatar fiskfan1999 avatar fumin avatar hasit avatar isi-lincoln avatar jrapoport avatar ross-spencer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bolter's Issues

Support for remote bolt files

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

README.md out of date

Update the README.md file to reflect the new changes of the interactive mode update.

Giving a string ending with a dot to -b fails

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  |
+---------+---------+
+---------+---------+

why --bucket option is not available on latest master build?

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

-b option can not be used

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

build failure

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.

go run fails

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.