Skip to content

cyctl completion fails #880

Description

@Moisan

Describe the bug
cyctl uses cobra to generate completion scripts for various shells. However this command currently fails.

To Reproduce
Steps to reproduce the behavior:

> cyctl completion bash

goroutine 1 [running]:
github.com/cyclops-ui/cycops-cyctl/cmd.init.GetKubeConfig.func9(0x1400050ea00?, {0x104465f20?, 0x4?, 0x1031ae87b?})
        github.com/cyclops-ui/cycops-cyctl/internal/kubeconfig/kubeconfig.go:33 +0x1c0
github.com/spf13/cobra.(*Command).execute(0x14000221b08, {0x104465f20, 0x0, 0x0})
        github.com/spf13/cobra@v1.8.0/command.go:961 +0x698
github.com/spf13/cobra.(*Command).ExecuteC(0x1044221a0)
        github.com/spf13/cobra@v1.8.0/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(0x0?)
        github.com/spf13/cobra@v1.8.0/command.go:1039 +0x1c
main.main()
        github.com/cyclops-ui/cycops-cyctl/main.go:11 +0x24

Expected behavior
I expected to obtain a completion script.

Desktop (please complete the following information):

  • OS: MacOS Sequoia 15.6.1
  • Version: cyctl 0.21.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions