mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
Merge pull request #3573 from yashvardhan-kukreja/issue-3466/no-args-fix
fix: remove NoArgs positional arguments validation
This commit is contained in:
@@ -30,7 +30,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for building
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
// TODO(bentheelder): more detailed usage
|
||||
Use: "build",
|
||||
Short: "Build one of [node-image]",
|
||||
|
||||
@@ -33,7 +33,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for cluster creation
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
Use: "completion",
|
||||
Short: "Output shell completion code for the specified shell (bash, zsh or fish)",
|
||||
Long: longDescription,
|
||||
|
||||
@@ -30,7 +30,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for cluster creation
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
Use: "create",
|
||||
Short: "Creates one of [cluster]",
|
||||
Long: "Creates one of local Kubernetes cluster (cluster)",
|
||||
|
||||
@@ -31,7 +31,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for cluster deletion
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
// TODO(bentheelder): more detailed usage
|
||||
Use: "delete",
|
||||
Short: "Deletes one of [cluster]",
|
||||
|
||||
@@ -31,7 +31,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for export
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
// TODO(bentheelder): more detailed usage
|
||||
Use: "export",
|
||||
Short: "Exports one of [kubeconfig, logs]",
|
||||
|
||||
@@ -32,7 +32,6 @@ import (
|
||||
// NewCommand returns a new cobra.Command for get
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
// TODO(bentheelder): more detailed usage
|
||||
Use: "get",
|
||||
Short: "Gets one of [clusters, nodes, kubeconfig]",
|
||||
|
||||
@@ -43,7 +43,6 @@ type flagpole struct {
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
flags := &flagpole{}
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
Use: "kind",
|
||||
Short: "kind is a tool for managing local Kubernetes clusters",
|
||||
Long: "kind creates and manages local Kubernetes clusters using Docker container 'nodes'",
|
||||
|
||||
@@ -71,7 +71,6 @@ var gitCommit = ""
|
||||
// NewCommand returns a new cobra.Command for version
|
||||
func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Args: cobra.NoArgs,
|
||||
Use: "version",
|
||||
Short: "Prints the kind CLI version",
|
||||
Long: "Prints the kind CLI version",
|
||||
|
||||
Reference in New Issue
Block a user