Skip to content

Commit

Permalink
refactor fix common args to each cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Aug 3, 2023
1 parent bedd2e2 commit e34f63c
Show file tree
Hide file tree
Showing 15 changed files with 248 additions and 269 deletions.
48 changes: 24 additions & 24 deletions internal/cmd/__snapshots__/netrule_test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -352,16 +352,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -382,16 +382,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -411,16 +411,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand Down Expand Up @@ -544,16 +544,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -573,16 +573,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -602,16 +602,16 @@ Aliases:
Flags:
-h, --help help for create
--host-prefix string custom host prefix
-n, --namespace string namespace
--path string path for Ingress path when using ingress (default \"/\")
--port int32 serivce port number (Required)
--public disable authentication for this port
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand Down Expand Up @@ -736,13 +736,13 @@ Aliases:
Flags:
-h, --help help for delete
--index int network rule index (Required) (default -1)
-n, --namespace string namespace
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -762,13 +762,13 @@ Aliases:
Flags:
-h, --help help for delete
--index int network rule index (Required) (default -1)
-n, --namespace string namespace
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -788,13 +788,13 @@ Aliases:
Flags:
-h, --help help for delete
--index int network rule index (Required) (default -1)
-n, --namespace string namespace
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -814,13 +814,13 @@ Aliases:
Flags:
-h, --help help for delete
--index int network rule index (Required) (default -1)
-n, --namespace string namespace
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand All @@ -840,13 +840,13 @@ Aliases:
Flags:
-h, --help help for delete
--index int network rule index (Required) (default -1)
-n, --namespace string namespace
-u, --user string user name
--workspace string workspace name (Required)

Global Flags:
--context string kube-context (default: current context)
--kubeconfig string kubeconfig file path (default: $HOME/.kube/config)
-n, --namespace string namespace
-u, --user string user name
-v, --verbose int log level. -1:DISABLED, 0:INFO, 1:DEBUG, 2:ALL (default -1)

"""
Expand Down
Loading

0 comments on commit e34f63c

Please sign in to comment.