Skip to content

Commit f81132e

Browse files
committed
rename command to commands
1 parent 871cb98 commit f81132e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/api/handlers/types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ type GenerateEmbeddedClusterNodeJoinCommandRequest struct {
109109
}
110110

111111
type GenerateEmbeddedClusterNodeJoinCommandResponse struct {
112-
Command []string `json:"command"`
112+
Commands []string `json:"commands"`
113113
}

pkg/handlers/embedded_cluster_node_join_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (h *Handler) GenerateEmbeddedClusterNodeJoinCommand(w http.ResponseWriter,
5353
}
5454

5555
JSON(w, http.StatusOK, types.GenerateEmbeddedClusterNodeJoinCommandResponse{
56-
Command: nodeJoinCommands,
56+
Commands: nodeJoinCommands,
5757
})
5858
}
5959

web/src/components/apps/EmbeddedClusterManagement.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const EmbeddedClusterManagement = ({
178178
});
179179

180180
type AddNodeCommandResponse = {
181-
command: string[];
181+
commands: string[];
182182
expiry: string;
183183
};
184184

@@ -511,9 +511,9 @@ const EmbeddedClusterManagement = ({
511511
{generateAddNodeCommandError?.message}
512512
</p>
513513
)}
514-
{!generateAddNodeCommandLoading && generateAddNodeCommand?.command && (
514+
{!generateAddNodeCommandLoading && generateAddNodeCommand?.commands && (
515515
<div className="tw-flex tw-flex-col tw-gap-4 tw-mt-4">
516-
{generateAddNodeCommand.command.map((command, index) => (
516+
{generateAddNodeCommand.commands.map((command, index) => (
517517
<div key={command}>
518518
{addNodesCommandInstructions[index] && (
519519
<p className="tw-text-gray-600 tw-font-semibold">

0 commit comments

Comments
 (0)