Commit Graph

79 Commits

Author SHA1 Message Date
Seth Etter 7a8972fb5c
Format and indent JSON values 2019-10-07 07:43:10 -05:00
Brian Buller 8c302bd236 Close file after exporting JSON
Resolves issue #30
2019-02-18 09:04:38 -06:00
Brian Buller 433c8111ba Rename boltbrowser.go to main.go
Also, add version number to about screen
2019-02-18 08:55:48 -06:00
Brian Buller b274dceb94
Merge pull request #29 from tbrent/master
Fix Vendoring
2019-02-18 08:14:47 -06:00
Taylor Brent b414b1e88b Fix vendoring for br0xen 2019-02-15 17:28:47 -08:00
Taylor Brent 61c7f57d2b Fix vendoring 2019-02-15 17:25:37 -08:00
Brian Buller 02b86a0e35
Update README.md
Add troubleshooting section
2018-10-24 09:31:50 -05:00
Brian Buller fa1386d9c5 Use `go mod` for vendoring 2018-10-24 07:42:04 -05:00
Brian Buller 7d7e0bfcd3 Add simple 'read-only' mode.
It just closes the database as soon as it's done loading it.
To refresh, you have to close out and reopen.
2018-04-26 09:13:13 -05:00
Brian Buller 6261d4da06 Updated Dependencies 2018-04-26 07:05:07 -05:00
Brian Buller fe0290c14e
Merge pull request #22 from gabstv/master
Print only valid (non control) UTF8 characters
2018-02-01 14:27:19 -06:00
Gabriel Ochsenhofer e973a8c7ed stringify key/val 2018-02-01 13:51:25 -02:00
Brian Buller f289915a70 Merge pull request #20 from andrewslotin/18-timeout_if_db_is_locked
Timeout if DB is locked
2017-10-13 12:03:53 -05:00
Andrew Slotin c7d3622f7a Update README 2017-10-13 22:23:02 +07:00
Andrew Slotin d506dad041 Print out usage message to STDERR
`flag.PrintDefaults()` writes to `os.Stderr`, therefore the "Usage"
part should go there as well.
2017-10-13 22:23:02 +07:00
Andrew Slotin 4ab47545f7 Pass db open timeout via command-line flag 2017-10-13 22:23:02 +07:00
Andrew Slotin 4eadc39e27 Log error and exit if the db file could not be opened within 1s 2017-10-13 18:57:28 +07:00
Brian Buller e903cbcea6 Merge pull request #19 from andrewslotin/add_flags_support
Add flags support
Add *.db to .gitignore
Exit with status code 2 (command misuse) if no files were given
2017-10-12 06:57:08 -05:00
Andrew Slotin 6bfd6215e6 Exit with status code 2 if no files were given
By convention exit(1) is reserved for general errors, while exit(2)
means command misuse. Stdlib `flags` package invokes `os.Exit(2)`
after printing out the usage message. This commit changes the empty
files list exit code to be aligned with this behavior.
2017-10-12 11:52:33 +07:00
Andrew Slotin 46e67d5848 Add --help flag support
Currently executing `boltbrowser --help` creates a file with name
`--help` in the current working directory, which is counterintuitive.
This commit adds command-line flags support to boltbrowser and changes
it to print out the usage message instead.
2017-10-12 11:47:00 +07:00
Andrew Slotin 3c22c6227b Add *.db to .gitignore
To avoid committing BoltDB database files by accident.
2017-10-12 11:46:12 +07:00
Brian Buller 8733dcb5e3 Updated Dependency (Fix Ctrl+U Behavior) 2017-09-04 09:32:57 -05:00
Brian Buller 4d25527218 Add links to pre-built binaries 2017-08-30 09:10:43 -05:00
Brian Buller 97cc915452 Vendored Dependencies
Also removed some commented out code
2017-08-30 08:55:08 -05:00
Brian Buller ca8240e06d Fixed bug that occurred with sub-buckets around level 4 2017-05-18 08:17:58 -05:00
Brian Buller 9946fceba7 Merge branch 'master' of github.com:br0xen/boltbrowser 2017-04-28 16:07:08 -05:00
Brian Buller ff35f76c1f Merge pull request #12 from shawnps/patch-1
fix images markdown in README
2017-04-28 08:31:38 -05:00
Shawn Smith 500e04e180 fix images markdown in README 2017-04-24 13:06:21 +09:00
Brian Buller 6639f93834 Prep for right pane scrolling 2017-04-05 12:49:05 -05:00
Brian Buller bbef340848 Fixed issue with bucket/key/value having '/' 2017-04-05 11:29:28 -05:00
Brian Buller 6b6a241245 Merge pull request #11 from aerth/invalid-db
handle non-bolt files with a simple error screen
2017-04-05 07:07:06 -05:00
aerth e10337092f
handle the case of single nonbolt file 2017-04-04 20:31:40 -07:00
aerth ae584be0b8
handle non-bolt files without needing to reset terminal 2017-04-04 20:13:50 -07:00
Brian Buller 82c105e8c3 Add filename to browser title bar 2017-04-04 16:41:15 -05:00
Brian Buller e83f065faa Merge pull request #10 from aerth/multi
Allow user to open multiple files, for example 'boltbrowser *.db'
2017-04-04 16:33:16 -05:00
Brian Buller f2d0291391 Merge pull request #9 from aerth/const2var
Consider allowing compiler to reassign the value of ProgramName
2017-04-04 16:32:44 -05:00
aerth 9cc6944303
Allow user to open multiple files, for example 'boltbrowser *.db' 2017-04-04 14:19:07 -07:00
aerth 0a10386457
Allow compiler to reassign the value of ProgramName
Can use ldflags in build line such as:

    -ldflags='-X main.ProgramName=${NAME}"'
2017-04-04 14:08:08 -07:00
Brian Buller a3019e1e0a Merge pull request #7 from chilts/install-and-usage
Add install and usage info to the README
2016-12-30 07:30:48 -06:00
Andrew Chilton af8cc1ccc1 Add install and usage info to the README 2016-12-31 00:40:07 +13:00
Brian Buller e1430823a8 Added export functions
* (x) - Export value as string
* (X) - Export key/value or bucket as JSON
2016-12-29 15:23:58 -06:00
Brian Buller 6a2dc9f776 Truncate long bucket names 2016-12-29 12:43:10 -06:00
Brian Buller 8dba00b972 Truncate extra-long lines in the left pane 2016-12-29 12:33:09 -06:00
Brian Buller 4c01d82dfa 'D' is delete, not 'd'
Resolves github issue #3
2016-06-27 07:29:59 -05:00
Brian Buller 354b6641b6 Add comment explaining mainloop_windows.go 2016-06-27 07:23:56 -05:00
Brian Buller ca7e8555bd Merge pull request #2 from louy2/guard-signal
Guard signal
2016-05-09 10:42:24 -05:00
Brian Buller fb91d0fdfa Merge pull request #1 from louy2/remove-signal
Fix windows build
2016-05-09 10:42:13 -05:00
Yufan Lou 97df7c742a Add default mainLoop with syscall 2016-05-06 05:04:04 +08:00
Yufan Lou 6710b98ca9 Move mainLoop without C-z to windows-specific file 2016-05-06 04:59:09 +08:00
Yufan Lou c05b306cf6 Fix import: remove pkg syscall 2016-05-06 04:53:46 +08:00