Skip to content

Commit

Permalink
feat(iso): support deprecation info API
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote committed Oct 12, 2023
1 parent 04ab003 commit 51c0a37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cmd/iso/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import (
"context"
"fmt"

"github.com/spf13/cobra"

"github.com/hetznercloud/cli/internal/cmd/base"
"github.com/hetznercloud/cli/internal/cmd/util"
"github.com/hetznercloud/cli/internal/hcapi2"
"github.com/spf13/cobra"

"github.com/hetznercloud/hcloud-go/v2/hcloud"
)
Expand All @@ -28,6 +30,7 @@ var DescribeCmd = base.DescribeCmd{
fmt.Printf("Name:\t\t%s\n", iso.Name)
fmt.Printf("Description:\t%s\n", iso.Description)
fmt.Printf("Type:\t\t%s\n", iso.Type)
fmt.Printf(util.DescribeDeprecation(iso))

Check failure on line 33 in internal/cmd/iso/describe.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use iso (variable of type *hcloud.ISO) as hcloud.Deprecatable value in argument to util.DescribeDeprecation: *hcloud.ISO does not implement hcloud.Deprecatable (missing method DeprecationAnnounced) (typecheck)

Check failure on line 33 in internal/cmd/iso/describe.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use iso (variable of type *hcloud.ISO) as hcloud.Deprecatable value in argument to util.DescribeDeprecation: *hcloud.ISO does not implement hcloud.Deprecatable (missing method DeprecationAnnounced)) (typecheck)

Check failure on line 33 in internal/cmd/iso/describe.go

View workflow job for this annotation

GitHub Actions / build-cli

cannot use iso (variable of type *hcloud.ISO) as hcloud.Deprecatable value in argument to util.DescribeDeprecation: *hcloud.ISO does not implement hcloud.Deprecatable (missing method DeprecationAnnounced)

Check failure on line 33 in internal/cmd/iso/describe.go

View workflow job for this annotation

GitHub Actions / Build

cannot use iso (variable of type *hcloud.ISO) as hcloud.Deprecatable value in argument to util.DescribeDeprecation: *hcloud.ISO does not implement hcloud.Deprecatable (missing method DeprecationAnnounced)

architecture := "-"
if iso.Architecture != nil {
Expand Down

0 comments on commit 51c0a37

Please sign in to comment.