perkeep/cmd/pk
mpl ce4658abfc cmd: rename camput to pk-put, and make "pk put" call it
A new "put" mode is added to the pk command, so that the "pk put"
command can be used to create and upload blobs.

What this command does is actually just call the previously named
"camput" executable, which is renamed to "pk-put" in this change.

This involves adding a new way to register a mode in cmdmain, when such
a mode is just meant to call an external binary. To emphasize the
distinction, the existing func (to register a sub-command, or a mode) is
renamed from RegisterCommand to RegisterMode, and RegisterCommand is now
the name of the new func/way.

Updates #981
Updates #1056

Change-Id: Ief954c17aa88a376f551df7de4b4e9fe41ad96d1
2018-04-21 10:26:55 -07:00
..
.gitignore cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
camtool.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
claims.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
dbinit.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
debug.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
describe.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
disco.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
doc.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
dp_idx_rebuild.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
dumpconfig.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
env.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
exif.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
googinit.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
index.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
list.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
makestatic.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
mime.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
packblobs.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
put.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
search.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
searchdoc.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
searchnames.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
splits.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
sqlite_cond.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
sync.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00
sync_test.go cmd/camtool: rename from camtool to pk 2018-03-06 16:20:59 +01:00
whoami.go cmd: rename camput to pk-put, and make "pk put" call it 2018-04-21 10:26:55 -07:00