Commit Graph

16 Commits

Author SHA1 Message Date
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
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
ca8240e06d Fixed bug that occurred with sub-buckets around level 4 2017-05-18 08:17:58 -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
82c105e8c3 Add filename to browser title bar 2017-04-04 16:41:15 -05:00
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
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
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
Yufan Lou
e9702239da Fix windows build
No UNIX signals are defined under windows, so Ctrl-Z sending SIGSTOP to self is removed.
2016-05-06 03:50:04 +08:00
9a45937d0f Wrap long bucket/pair names/values 2015-12-01 15:20:52 -06:00
908848fed6 Linted 2015-09-17 11:49:57 -05:00
941e624d16 Migrate to github from personal host 2015-05-18 09:47:08 -05:00