Skip to content

Commit 18e39fd

Browse files
committed
fix: improve docs and warnings
1 parent 2976e86 commit 18e39fd

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

internal/cmd/primaryip/create.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ var CreateCmd = base.CreateCmd[*hcloud.PrimaryIP]{
2222
Long: `Create a Primary IP.
2323
2424
The --datacenter flag is deprecated. Use --location or --assignee-id instead.
25-
See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.`,
25+
See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.
26+
27+
The --assignee-type flag will be required together with the --assignee-id flag. Using
28+
the default value (server) for the --assignee-type flag is deprecated. Consider
29+
explicitly setting the --assignee-type flag.
30+
31+
See https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-will-return-unassigned
32+
and https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-make-assignee_type-optional.
33+
`,
2634
TraverseChildren: true,
2735
DisableFlagsInUseLine: true,
2836
}
@@ -80,9 +88,9 @@ See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.`,
8088
if !cmd.Flags().Changed("assignee-type") {
8189
cmd.PrintErrln(
8290
"Warning: " +
83-
"The --assignee-type flag will soon be required together" +
84-
"with the --assignee-id flag. Consider explicitly setting " +
85-
"the --assignee-type flag.",
91+
"The --assignee-type flag will be required together " +
92+
"with the --assignee-id flag and will no longer default " +
93+
"to 'server'.",
8694
)
8795
}
8896
createOpts.AssigneeType = assigneeType

0 commit comments

Comments
 (0)