Skip to content

Commit 84101f2

Browse files
authored
Merge pull request #3573 from yashvardhan-kukreja/issue-3466/no-args-fix
fix: remove NoArgs positional arguments validation
2 parents bc142d0 + f12c68c commit 84101f2

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed

pkg/cmd/kind/build/build.go

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
// NewCommand returns a new cobra.Command for building
3131
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3232
cmd := &cobra.Command{
33-
Args: cobra.NoArgs,
3433
// TODO(bentheelder): more detailed usage
3534
Use: "build",
3635
Short: "Build one of [node-image]",

pkg/cmd/kind/completion/completion.go

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
// NewCommand returns a new cobra.Command for cluster creation
3434
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3535
cmd := &cobra.Command{
36-
Args: cobra.NoArgs,
3736
Use: "completion",
3837
Short: "Output shell completion code for the specified shell (bash, zsh or fish)",
3938
Long: longDescription,

pkg/cmd/kind/create/create.go

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
// NewCommand returns a new cobra.Command for cluster creation
3131
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3232
cmd := &cobra.Command{
33-
Args: cobra.NoArgs,
3433
Use: "create",
3534
Short: "Creates one of [cluster]",
3635
Long: "Creates one of local Kubernetes cluster (cluster)",

pkg/cmd/kind/delete/delete.go

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
// NewCommand returns a new cobra.Command for cluster deletion
3232
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3333
cmd := &cobra.Command{
34-
Args: cobra.NoArgs,
3534
// TODO(bentheelder): more detailed usage
3635
Use: "delete",
3736
Short: "Deletes one of [cluster]",

pkg/cmd/kind/export/export.go

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
// NewCommand returns a new cobra.Command for export
3232
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3333
cmd := &cobra.Command{
34-
Args: cobra.NoArgs,
3534
// TODO(bentheelder): more detailed usage
3635
Use: "export",
3736
Short: "Exports one of [kubeconfig, logs]",

pkg/cmd/kind/get/get.go

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
// NewCommand returns a new cobra.Command for get
3333
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
3434
cmd := &cobra.Command{
35-
Args: cobra.NoArgs,
3635
// TODO(bentheelder): more detailed usage
3736
Use: "get",
3837
Short: "Gets one of [clusters, nodes, kubeconfig]",

pkg/cmd/kind/root.go

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ type flagpole struct {
4343
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
4444
flags := &flagpole{}
4545
cmd := &cobra.Command{
46-
Args: cobra.NoArgs,
4746
Use: "kind",
4847
Short: "kind is a tool for managing local Kubernetes clusters",
4948
Long: "kind creates and manages local Kubernetes clusters using Docker container 'nodes'",

pkg/cmd/kind/version/version.go

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ var gitCommit = ""
7171
// NewCommand returns a new cobra.Command for version
7272
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
7373
cmd := &cobra.Command{
74-
Args: cobra.NoArgs,
7574
Use: "version",
7675
Short: "Prints the kind CLI version",
7776
Long: "Prints the kind CLI version",

0 commit comments

Comments
 (0)