Skip to content

Commit

Permalink
Update command with new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed Apr 24, 2022
1 parent 06c928b commit 79704dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/headscale/cli/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ var expireNodeCmd = &cobra.Command{
}

var renameNodeCmd = &cobra.Command{
Use: "rename NEW_NAME",
Short: "Renames a machine in your network",
Use: "rename NEW_NAME",
Short: "Renames a machine in your network",
Run: func(cmd *cobra.Command, args []string) {
output, _ := cmd.Flags().GetString("output")

Expand All @@ -241,7 +241,7 @@ var renameNodeCmd = &cobra.Command{
}
request := &v1.RenameMachineRequest{
MachineId: identifier,
NewName: newName,
NewName: newName,
}

response, err := client.RenameMachine(ctx, request)
Expand Down Expand Up @@ -358,8 +358,8 @@ func nodesToPtables(
tableData := pterm.TableData{
{
"ID",
"Name",
"Nickname",
"Hostname",
"Friendly name",
"NodeKey",
"Namespace",
"IP addresses",
Expand Down Expand Up @@ -424,7 +424,7 @@ func nodesToPtables(
[]string{
strconv.FormatUint(machine.Id, headscale.Base10),
machine.Name,
machine.Nickname,
machine.GivenName,
nodeKey.ShortString(),
namespace,
strings.Join(machine.IpAddresses, ", "),
Expand Down

0 comments on commit 79704dc

Please sign in to comment.