Tamás Gulácsi
7402cc0efd
Delete misc unused objects
...
Using honnef.co/go/unused/cmd/unused
Change-Id: I672b3cb77f09e9bd80dcdc149cde4f7f2939e451
2016-04-06 17:59:51 +02:00
Will Norris
77ed42edf8
add canonical import paths
...
The import path was added to the go file that included the package
documentation if one existed. Otherwise, I used what seemed to be the
primary file for the package.
Fixes #689
Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
2016-03-13 19:57:14 -07:00
mpl
cea5e332ce
vendor: go4.org/legal
...
At rev c3c16077b235db4c6b2a2a6121c2d429707f4ed4
And use it in new package pkg/camlegal
And remove pkg/legal
Change-Id: I5e398aa5f145a02a04d33719276fd2f8b82ab12b
2015-12-16 18:50:49 +01:00
mpl
3db00e5e98
devcam: move modtime check after cwd check
...
checkCamliSrcRoot was meant to give a nice error msg if devcam is
invoked from outside the Camlistore source tree. However, it was never
called because the modtime check (checkModtime), which itself needs to
be run from that same location, was called first. So we were always
getting the terse "open dev/devcam: no such file or directory" error
message instead.
Fixes #589
Change-Id: I13a1bb3819217ffbaf727fa6154f077dd8babd49
2015-05-07 16:53:44 +02:00
mpl
250664d8eb
camput: use Errorf to print critical errors even when non-verbose
...
http://camlistore.org/issue/524
Change-Id: Ied24471288ea459785291281afa7316a257b6884
2014-11-03 22:15:36 +01:00
Piotr S. Staszewski
5e61e2d84e
legal: package for compiled-in licenses
...
Initial implementation, printing helper and 'wiring' for cam* tools.
Change-Id: Icf8baa77ee1f12495be8f1a57b7d575d6918cb5c
2014-07-10 23:01:54 +02:00
mpl
4569a7f475
devcam review: submit changes for review
...
Context: http://camlistore.org/issue/408
Change-Id: I587de65c9dc8d87c02541096e1f4f7765e644962
2014-05-13 23:06:30 +02:00
Brad Fitzpatrick
593e0f0f81
cmdmain, camput: PreExit should always run, not just in verbose mode
...
Change-Id: I6001a3474071a00f0ab56b031ac8c5504e5e9da5
2014-02-27 20:47:15 -08:00
Brad Fitzpatrick
85e2e5e301
Fix crash with "go test -v -cpu=1,1 ./cmd/camput/"
...
Don't double-register the help flag. Only affects tests run twice, like above.
Change-Id: Ia235f2e2aa4a70e3b5a5c6fe21d8add90069664f
2014-02-21 10:59:34 -08:00
Brad Fitzpatrick
16219f24b0
cmdmain: set flagset output to cmdmain.Stderr
...
Default flag output only goes to cmdmain.Stderr when >= Go 1.2
Change-Id: Id2358b4c22b76901ceb834695d54e32f7c2d7013
2014-02-18 18:41:51 -08:00
Brad Fitzpatrick
f99eaf5e36
cmdmain: guard ExtraFlagRegistration with a Once
...
Change-Id: Id54111dc21eeb61b02721117123b956fcc3b47fd
2014-02-18 00:31:10 -08:00
Brad Fitzpatrick
f4bbeb3549
cmdmain: remove spurious newlines from commands with no examples
...
Change-Id: I0cae9dd4a822fb94e3ecdff7dc257bd3804fdd04
2014-02-09 15:41:52 -08:00
Brad Fitzpatrick
cf0d9aca6e
More docs
...
Change-Id: I5c21f240c85bcf91fb67487cc172bf3faeb49fff
2013-07-07 18:52:14 -07:00
mpl
b5e75e9207
cmdmain: use ExitWithFailure, exit on error instead of returning it
...
Change-Id: I553bed110394cb8ab48b331ba74d551b840ada5c
2013-02-27 22:04:50 +01:00
mpl
81cb48980e
camtool: added dbinit.
...
Change-Id: I26c58023a5275612dfd2bf85adfd59e8c08baab5
2013-02-27 16:07:02 +01:00
mpl
3a21c89712
camput: fix test. Add descriptions for better help.
...
Change-Id: I9016fca1dcf36ca5908947e84a5251bf587a83a7
2013-02-26 21:08:24 +01:00
mpl
d1a909ea5e
camtool: added gsinit, was cmd/camgsinit. Better help too.
...
Change-Id: Icefe51759db8b89b51f408a66a3d10f2148d7137
2013-02-26 14:45:49 +01:00
mpl
59d0d6cb7e
Create camtool cmd, with sync subcommand.
...
Code in common with camput was factorized in pkg/cmdmain/
Partly addresses
http://code.google.com/p/camlistore/issues/detail?id=117
Change-Id: Iabebea7ea78e56bdb8a6eccee9456c52bfe9cceb
2013-02-20 23:47:17 +01:00