Skip to content

Commit

Permalink
Rename command to node-identity
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Oct 18, 2024
1 parent 8fb496b commit 3b78032
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli/node_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

func MakeNodeIdentityCommand() *cobra.Command {
var cmd = &cobra.Command{
Use: "node_identity",
Use: "node-identity",
Short: "Get the information public about the node's identity",
Long: `Get the information public about the node's identity.
Expand Down
2 changes: 1 addition & 1 deletion docs/website/references/cli/defradb_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Execute queries, add schema types, obtain node info, etc.
* [defradb client collection](defradb_client_collection.md) - Interact with a collection.
* [defradb client dump](defradb_client_dump.md) - Dump the contents of DefraDB node-side
* [defradb client index](defradb_client_index.md) - Manage collections' indexes of a running DefraDB instance
* [defradb client node_identity](defradb_client_node_identity.md) - Get the information public about the node's identity
* [defradb client node-identity](defradb_client_node-identity.md) - Get the information public about the node's identity
* [defradb client p2p](defradb_client_p2p.md) - Interact with the DefraDB P2P system
* [defradb client purge](defradb_client_purge.md) - Delete all persisted data and restart
* [defradb client query](defradb_client_query.md) - Send a DefraDB GraphQL query request
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## defradb client node_identity
## defradb client node-identity

Get the information public about the node's identity

Expand All @@ -14,13 +14,13 @@ The identity contains:


```
defradb client node_identity [flags]
defradb client node-identity [flags]
```

### Options

```
-h, --help help for node_identity
-h, --help help for node-identity
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/website/references/http/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@
},
"/node/identity": {
"get": {
"description": "Get node's identity",
"description": "Get node's public identity",
"operationId": "node_identity",
"responses": {
"200": {
Expand Down
2 changes: 1 addition & 1 deletion http/handler_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ func (h *storeHandler) bindRoutes(router *Router) {

nodeIdentity := openapi3.NewOperation()
nodeIdentity.OperationID = "node_identity"
nodeIdentity.Description = "Get node's identity"
nodeIdentity.Description = "Get node's public identity"
nodeIdentity.Tags = []string{"node", "identity"}
nodeIdentity.AddResponse(200, identityResponse)
nodeIdentity.Responses.Set("400", errorResponse)
Expand Down
2 changes: 1 addition & 1 deletion tests/clients/cli/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (w *Wrapper) Host() string {
}

func (w *Wrapper) GetNodeIdentity(ctx context.Context) (immutable.Option[identity.PublicRawIdentity], error) {
args := []string{"node", "identity"}
args := []string{"client", "node-identity"}

data, err := w.cmd.execute(ctx, args)
if err != nil {
Expand Down

0 comments on commit 3b78032

Please sign in to comment.