Skip to content

Commit 5318848

Browse files
authored
Merge pull request #703 from lightninglabs/add_cli_autogen_docs
taprpc: add missing cli autogen docs
2 parents 05ec7dc + 58b3a3f commit 5318848

11 files changed

+26
-18
lines changed

cmd/tapcli/assets.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ var finalizeBatchCommand = cli.Command{
261261
},
262262
cli.Uint64Flag{
263263
Name: feeRateName,
264-
Usage: "if set, the fee rate in sat/kw to use for the" +
265-
"minting transaction",
264+
Usage: "if set, the fee rate in sat/kw to use for " +
265+
"the minting transaction",
266266
},
267267
},
268268
Action: finalizeBatch,
@@ -531,8 +531,8 @@ var sendAssetsCommand = cli.Command{
531531
},
532532
cli.Uint64Flag{
533533
Name: feeRateName,
534-
Usage: "if set, the fee rate in sat/kw to use for the" +
535-
"anchor transaction",
534+
Usage: "if set, the fee rate in sat/kw to use for " +
535+
"the anchor transaction",
536536
},
537537
// TODO(roasbeef): add arg for file name to write sender proof
538538
// blob

cmd/tapcli/universe.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,13 +783,13 @@ var (
783783
},
784784
cli.StringFlag{
785785
Name: proofInsertName,
786-
Usage: "if true, remote Universes can push proofs to" +
786+
Usage: "if true, remote Universes can push proofs to " +
787787
"the local Universe",
788788
},
789789
cli.StringFlag{
790790
Name: proofExportName,
791-
Usage: "if true, remote Universes can pull proofs from" +
792-
"the local Universe",
791+
Usage: "if true, remote Universes can pull proofs " +
792+
"from the local Universe",
793793
},
794794
}
795795
)
@@ -1166,8 +1166,8 @@ func universeFederationGetConfigInfo(ctx *cli.Context) error {
11661166
}
11671167

11681168
if scope == "global" {
1169-
return fmt.Errorf("cannot specify global scope and a specific" +
1170-
"asset")
1169+
return fmt.Errorf("cannot specify global scope and a " +
1170+
"specific asset")
11711171
}
11721172

11731173
return printLocalConfig()

taprpc/assetwalletrpc/assetwallet.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ service AssetWallet {
4949
*/
5050
rpc NextScriptKey (NextScriptKeyRequest) returns (NextScriptKeyResponse);
5151

52-
/*
52+
/* tapcli: `proofs proveownership`
5353
ProveAssetOwnership creates an ownership proof embedded in an asset
5454
transition proof. That ownership proof is a signed virtual transaction
5555
spending the asset with a valid witness to prove the prover owns the keys
@@ -58,7 +58,7 @@ service AssetWallet {
5858
rpc ProveAssetOwnership (ProveAssetOwnershipRequest)
5959
returns (ProveAssetOwnershipResponse);
6060

61-
/*
61+
/* tapcli: `proofs verifyownership`
6262
VerifyAssetOwnership verifies the asset ownership proof embedded in the
6363
given transition proof of an asset and returns true if the proof is valid.
6464
*/

taprpc/assetwalletrpc/assetwallet.swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"/v1/taproot-assets/wallet/ownership/prove": {
5353
"post": {
54-
"summary": "ProveAssetOwnership creates an ownership proof embedded in an asset\ntransition proof. That ownership proof is a signed virtual transaction\nspending the asset with a valid witness to prove the prover owns the keys\nthat can spend the asset.",
54+
"summary": "tapcli: `proofs proveownership`\nProveAssetOwnership creates an ownership proof embedded in an asset\ntransition proof. That ownership proof is a signed virtual transaction\nspending the asset with a valid witness to prove the prover owns the keys\nthat can spend the asset.",
5555
"operationId": "AssetWallet_ProveAssetOwnership",
5656
"responses": {
5757
"200": {
@@ -84,7 +84,7 @@
8484
},
8585
"/v1/taproot-assets/wallet/ownership/verify": {
8686
"post": {
87-
"summary": "VerifyAssetOwnership verifies the asset ownership proof embedded in the\ngiven transition proof of an asset and returns true if the proof is valid.",
87+
"summary": "tapcli: `proofs verifyownership`\nVerifyAssetOwnership verifies the asset ownership proof embedded in the\ngiven transition proof of an asset and returns true if the proof is valid.",
8888
"operationId": "AssetWallet_VerifyAssetOwnership",
8989
"responses": {
9090
"200": {

taprpc/assetwalletrpc/assetwallet_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taprpc/taprootassets.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ service TaprootAssets {
123123
rpc SubscribeReceiveAssetEventNtfns (SubscribeReceiveAssetEventNtfnsRequest)
124124
returns (stream ReceiveAssetEvent);
125125

126-
/*
126+
/* tapcli: `assets meta`
127127
FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
128128
either by the asset ID for that asset, or a meta hash.
129129
*/

taprpc/taprootassets.swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
},
294294
"/v1/taproot-assets/assets/meta/asset-id/{asset_id_str}": {
295295
"get": {
296-
"summary": "FetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
296+
"summary": "tapcli: `assets meta`\nFetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
297297
"operationId": "TaprootAssets_FetchAssetMeta",
298298
"responses": {
299299
"200": {
@@ -348,7 +348,7 @@
348348
},
349349
"/v1/taproot-assets/assets/meta/hash/{meta_hash_str}": {
350350
"get": {
351-
"summary": "FetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
351+
"summary": "tapcli: `assets meta`\nFetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
352352
"operationId": "TaprootAssets_FetchAssetMeta2",
353353
"responses": {
354354
"200": {

taprpc/taprootassets_grpc.pb.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taprpc/universerpc/universe.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ service Universe {
134134
rpc SetFederationSyncConfig (SetFederationSyncConfigRequest)
135135
returns (SetFederationSyncConfigResponse);
136136

137-
/*
137+
/* tapcli: `universe federation config info`
138138
QueryFederationSyncConfig queries the universe federation sync configuration
139139
settings.
140140
*/

taprpc/universerpc/universe.swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@
12121212
},
12131213
"/v1/taproot-assets/universe/sync/config": {
12141214
"get": {
1215-
"summary": "QueryFederationSyncConfig queries the universe federation sync configuration\nsettings.",
1215+
"summary": "tapcli: `universe federation config info`\nQueryFederationSyncConfig queries the universe federation sync configuration\nsettings.",
12161216
"operationId": "Universe_QueryFederationSyncConfig",
12171217
"responses": {
12181218
"200": {

0 commit comments

Comments
 (0)