Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions command-signatures/json/kubecolor.json
Original file line number Diff line number Diff line change
Expand Up @@ -6989,15 +6989,19 @@
{
"name": "--cluster",
"args": {
"name": "cluster"
"name": "cluster",
"generatorName": "cluster",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig cluster to use",
"isPersistent": true
},
{
"name": "--context",
"args": {
"name": "context"
"name": "context",
"generatorName": "context",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig context to use",
"isPersistent": true
Expand Down Expand Up @@ -7125,7 +7129,9 @@
{
"name": "--user",
"args": {
"name": "user"
"name": "user",
"generatorName": "user",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig user to use",
"isPersistent": true
Expand Down
4 changes: 3 additions & 1 deletion command-signatures/json/kubectl.json
Original file line number Diff line number Diff line change
Expand Up @@ -7180,7 +7180,9 @@
{
"name": "--user",
"args": {
"name": "user"
"name": "user",
"generatorName": "user",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig user to use",
"isPersistent": true
Expand Down
12 changes: 9 additions & 3 deletions command-signatures/json/oc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8768,15 +8768,19 @@
{
"name": "--cluster",
"args": {
"name": "cluster"
"name": "cluster",
"generatorName": "cluster",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig cluster to use",
"isPersistent": true
},
{
"name": "--context",
"args": {
"name": "context"
"name": "context",
"generatorName": "context",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig context to use",
"isPersistent": true
Expand Down Expand Up @@ -8905,7 +8909,9 @@
{
"name": "--user",
"args": {
"name": "user"
"name": "user",
"generatorName": "user",
"skipGeneratorValidation": false
},
"description": "The name of the kubeconfig user to use",
"isPersistent": true
Expand Down
3 changes: 2 additions & 1 deletion command-signatures/src/generators/kubecolor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warp_completion_metadata::CommandSignatureGenerators;
use super::kubectl::{
CLUSTER_GENERATOR, CLUSTER_ROLE_GENERATOR, CONTEXT_GENERATOR, DEPLOYMENTS_GENERATOR,
NAMESPACE_GENERATOR, NODE_GENERATOR, RESOURCE_GENERATOR, RESOURCE_TYPE_GENERATOR,
ROLE_GENERATOR, RUNNING_PODS_GENERATOR, TYPE_OR_TYPE_SLASH_NAME,
ROLE_GENERATOR, RUNNING_PODS_GENERATOR, TYPE_OR_TYPE_SLASH_NAME, USER_GENERATOR,
};

pub fn generator() -> CommandSignatureGenerators {
Expand All @@ -19,6 +19,7 @@ pub fn generator() -> CommandSignatureGenerators {
.add_generator("resource", RESOURCE_GENERATOR.clone())
.add_generator("context", CONTEXT_GENERATOR.clone())
.add_generator("cluster", CLUSTER_GENERATOR.clone())
.add_generator("user", USER_GENERATOR.clone())
.add_generator("namespace", NAMESPACE_GENERATOR.clone())
.add_generator("type_or_type_slash_name", TYPE_OR_TYPE_SLASH_NAME.clone())
}
Loading
Loading