cbt: fix go generate command
This commit ensures 'go generate' works when using the command to
generate cbtdoc.go. The commit also includes a regenerated cbtdoc.go
with a minor formatting fix.
Change-Id: I761837e1115da66e21e20dd4a5387cce66f45321
Reviewed-on: https://code-review.googlesource.com/c/34470
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/bigtable/cmd/cbt/cbt.go b/bigtable/cmd/cbt/cbt.go
index 1c6eed1..c2d3307 100644
--- a/bigtable/cmd/cbt/cbt.go
+++ b/bigtable/cmd/cbt/cbt.go
@@ -252,8 +252,8 @@
do: doCreateTable,
Usage: "cbt createtable <table> [families=family[:gcpolicy],...] [splits=split,...]\n" +
" families: Column families and their associated GC policies. For gcpolicy,\n" +
- " see \"setgcpolicy\".\n" +
- " Example: families=family1:maxage=1w,family2:maxversions=1\n" +
+ " see \"setgcpolicy\".\n" +
+ " Example: families=family1:maxage=1w,family2:maxversions=1\n" +
" splits: Row key to be used to initially split the table",
Required: cbtconfig.ProjectAndInstanceRequired,
},
@@ -808,7 +808,7 @@
// DO NOT EDIT. THIS IS AUTOMATICALLY GENERATED.
// Run "go generate" to regenerate.
-//go:generate go run cbt.go -o cbtdoc.go doc
+//go:generate go run cbt.go gcpolicy.go -o cbtdoc.go doc
/*
Cbt is a tool for doing basic interactions with Cloud Bigtable. To learn how to
diff --git a/bigtable/cmd/cbt/cbtdoc.go b/bigtable/cmd/cbt/cbtdoc.go
index 59d559f..57d07ea 100644
--- a/bigtable/cmd/cbt/cbtdoc.go
+++ b/bigtable/cmd/cbt/cbtdoc.go
@@ -14,7 +14,7 @@
// DO NOT EDIT. THIS IS AUTOMATICALLY GENERATED.
// Run "go generate" to regenerate.
-//go:generate go run cbt.go -o cbtdoc.go doc
+//go:generate go run cbt.go gcpolicy.go -o cbtdoc.go doc
/*
Cbt is a tool for doing basic interactions with Cloud Bigtable. To learn how to
@@ -141,8 +141,8 @@
Usage:
cbt createtable <table> [families=family[:gcpolicy],...] [splits=split,...]
families: Column families and their associated GC policies. For gcpolicy,
- see "setgcpolicy".
- Example: families=family1:maxage=1w,family2:maxversions=1
+ see "setgcpolicy".
+ Example: families=family1:maxage=1w,family2:maxversions=1
splits: Row key to be used to initially split the table