From dd92b3f989e69e820b8f24a417b0d62fbec55060 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 15 Jun 2023 16:56:36 +0200 Subject: [PATCH] Disable shell completions for generated commands (#483) ## Changes Disable shell completions for generated commands. Default completion behavior completes local files which never makes sense. Automatic contextual completion of required arguments would be super powerful but a lot of work to get right. Until then, we could do manual completion functions in `overrides.go` as needed. This fixes #374. ## Tests Confirmed manually that commands no longer complete local files. --- .codegen/service.go.tmpl | 3 + cmd/account/access-control/access-control.go | 9 ++ cmd/account/billable-usage/billable-usage.go | 3 + cmd/account/budgets/budgets.go | 15 +++ cmd/account/credentials/credentials.go | 12 ++ .../custom-app-integration.go | 15 +++ .../encryption-keys/encryption-keys.go | 12 ++ cmd/account/groups/groups.go | 18 +++ .../ip-access-lists/ip-access-lists.go | 18 +++ cmd/account/log-delivery/log-delivery.go | 12 ++ .../metastore-assignments.go | 15 +++ cmd/account/metastores/metastores.go | 15 +++ cmd/account/networks/networks.go | 12 ++ .../o-auth-enrollment/o-auth-enrollment.go | 6 + cmd/account/private-access/private-access.go | 15 +++ .../published-app-integration.go | 15 +++ .../service-principal-secrets.go | 9 ++ .../service-principals/service-principals.go | 18 +++ cmd/account/settings/settings.go | 3 + .../storage-credentials.go | 15 +++ cmd/account/storage/storage.go | 12 ++ cmd/account/users/users.go | 18 +++ cmd/account/vpc-endpoints/vpc-endpoints.go | 12 ++ .../workspace-assignment.go | 12 ++ cmd/account/workspaces/workspaces.go | 15 +++ cmd/workspace/alerts/alerts.go | 15 +++ cmd/workspace/catalogs/catalogs.go | 15 +++ .../cluster-policies/cluster-policies.go | 15 +++ cmd/workspace/clusters/clusters.go | 106 +++++++++++++----- cmd/workspace/connections/connections.go | 15 +++ cmd/workspace/current-user/current-user.go | 3 + cmd/workspace/dashboards/dashboards.go | 15 +++ cmd/workspace/data-sources/data-sources.go | 3 + cmd/workspace/experiments/experiments.go | 72 ++++++++++++ .../external-locations/external-locations.go | 15 +++ cmd/workspace/functions/functions.go | 15 +++ .../git-credentials/git-credentials.go | 15 +++ .../global-init-scripts.go | 15 +++ cmd/workspace/grants/grants.go | 9 ++ cmd/workspace/groups/groups.go | 18 +++ .../instance-pools/instance-pools.go | 15 +++ .../instance-profiles/instance-profiles.go | 12 ++ .../ip-access-lists/ip-access-lists.go | 18 +++ cmd/workspace/jobs/jobs.go | 48 ++++++++ cmd/workspace/libraries/libraries.go | 12 ++ cmd/workspace/metastores/metastores.go | 33 ++++++ .../model-registry/model-registry.go | 96 ++++++++++++++++ cmd/workspace/permissions/permissions.go | 12 ++ cmd/workspace/pipelines/pipelines.go | 33 ++++++ .../policy-families/policy-families.go | 6 + cmd/workspace/providers/providers.go | 18 +++ cmd/workspace/queries/queries.go | 18 +++ cmd/workspace/query-history/query-history.go | 3 + .../recipient-activation.go | 6 + cmd/workspace/recipients/recipients.go | 21 ++++ cmd/workspace/repos/repos.go | 15 +++ cmd/workspace/schemas/schemas.go | 15 +++ cmd/workspace/secrets/secrets.go | 27 +++++ .../service-principals/service-principals.go | 18 +++ .../serving-endpoints/serving-endpoints.go | 27 +++++ cmd/workspace/shares/shares.go | 21 ++++ .../storage-credentials.go | 18 +++ .../system-schemas/system-schemas.go | 9 ++ .../table-constraints/table-constraints.go | 6 + cmd/workspace/tables/tables.go | 12 ++ .../token-management/token-management.go | 12 ++ cmd/workspace/tokens/tokens.go | 9 ++ cmd/workspace/users/users.go | 18 +++ cmd/workspace/volumes/volumes.go | 15 +++ cmd/workspace/warehouses/warehouses.go | 27 +++++ .../workspace-bindings/workspace-bindings.go | 6 + .../workspace-conf/workspace-conf.go | 6 + cmd/workspace/workspace/workspace.go | 18 +++ 73 files changed, 1256 insertions(+), 29 deletions(-) diff --git a/.codegen/service.go.tmpl b/.codegen/service.go.tmpl index 3ee67a7e..94080636 100644 --- a/.codegen/service.go.tmpl +++ b/.codegen/service.go.tmpl @@ -185,6 +185,9 @@ var {{.CamelName}}Cmd = &cobra.Command{ {{template "method-call" .}} {{end -}} }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } {{end}} // end service {{.Name}}{{end}} diff --git a/cmd/account/access-control/access-control.go b/cmd/account/access-control/access-control.go index 7e15696c..43c4850c 100755 --- a/cmd/account/access-control/access-control.go +++ b/cmd/account/access-control/access-control.go @@ -75,6 +75,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -125,6 +128,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -173,6 +179,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountAccessControl diff --git a/cmd/account/billable-usage/billable-usage.go b/cmd/account/billable-usage/billable-usage.go index 01010483..b42da597 100755 --- a/cmd/account/billable-usage/billable-usage.go +++ b/cmd/account/billable-usage/billable-usage.go @@ -72,6 +72,9 @@ var downloadCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service BillableUsage diff --git a/cmd/account/budgets/budgets.go b/cmd/account/budgets/budgets.go index 2c029010..2f663dfb 100755 --- a/cmd/account/budgets/budgets.go +++ b/cmd/account/budgets/budgets.go @@ -67,6 +67,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -125,6 +128,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -184,6 +190,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -212,6 +221,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -258,6 +270,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Budgets diff --git a/cmd/account/credentials/credentials.go b/cmd/account/credentials/credentials.go index c94b5d34..ed371f93 100755 --- a/cmd/account/credentials/credentials.go +++ b/cmd/account/credentials/credentials.go @@ -81,6 +81,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -141,6 +144,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -200,6 +206,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -228,6 +237,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Credentials diff --git a/cmd/account/custom-app-integration/custom-app-integration.go b/cmd/account/custom-app-integration/custom-app-integration.go index 377c02a1..ad8dfdcd 100755 --- a/cmd/account/custom-app-integration/custom-app-integration.go +++ b/cmd/account/custom-app-integration/custom-app-integration.go @@ -76,6 +76,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -125,6 +128,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -173,6 +179,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -201,6 +210,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -253,6 +265,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service CustomAppIntegration diff --git a/cmd/account/encryption-keys/encryption-keys.go b/cmd/account/encryption-keys/encryption-keys.go index b63610b9..c295fece 100755 --- a/cmd/account/encryption-keys/encryption-keys.go +++ b/cmd/account/encryption-keys/encryption-keys.go @@ -97,6 +97,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -146,6 +149,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -208,6 +214,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -247,6 +256,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service EncryptionKeys diff --git a/cmd/account/groups/groups.go b/cmd/account/groups/groups.go index 78c6aafe..58d8d9d1 100755 --- a/cmd/account/groups/groups.go +++ b/cmd/account/groups/groups.go @@ -81,6 +81,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -139,6 +142,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -197,6 +203,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -252,6 +261,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -312,6 +324,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -378,6 +393,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountGroups diff --git a/cmd/account/ip-access-lists/ip-access-lists.go b/cmd/account/ip-access-lists/ip-access-lists.go index 2cef636e..cf2f03fa 100755 --- a/cmd/account/ip-access-lists/ip-access-lists.go +++ b/cmd/account/ip-access-lists/ip-access-lists.go @@ -102,6 +102,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -160,6 +163,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -218,6 +224,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -245,6 +254,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start replace command @@ -310,6 +322,9 @@ var replaceCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -379,6 +394,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountIpAccessLists diff --git a/cmd/account/log-delivery/log-delivery.go b/cmd/account/log-delivery/log-delivery.go index 79d1a4ae..0429127b 100755 --- a/cmd/account/log-delivery/log-delivery.go +++ b/cmd/account/log-delivery/log-delivery.go @@ -152,6 +152,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -211,6 +214,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -263,6 +269,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch-status command @@ -319,6 +328,9 @@ var patchStatusCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service LogDelivery diff --git a/cmd/account/metastore-assignments/metastore-assignments.go b/cmd/account/metastore-assignments/metastore-assignments.go index 8e746801..a393e281 100755 --- a/cmd/account/metastore-assignments/metastore-assignments.go +++ b/cmd/account/metastore-assignments/metastore-assignments.go @@ -74,6 +74,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -128,6 +131,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -183,6 +189,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -233,6 +242,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -289,6 +301,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountMetastoreAssignments diff --git a/cmd/account/metastores/metastores.go b/cmd/account/metastores/metastores.go index 1755e98a..e270b946 100755 --- a/cmd/account/metastores/metastores.go +++ b/cmd/account/metastores/metastores.go @@ -68,6 +68,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -117,6 +120,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -166,6 +172,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -195,6 +204,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -246,6 +258,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountMetastores diff --git a/cmd/account/networks/networks.go b/cmd/account/networks/networks.go index a1030eaa..b0214146 100755 --- a/cmd/account/networks/networks.go +++ b/cmd/account/networks/networks.go @@ -76,6 +76,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -139,6 +142,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -198,6 +204,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -229,6 +238,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Networks diff --git a/cmd/account/o-auth-enrollment/o-auth-enrollment.go b/cmd/account/o-auth-enrollment/o-auth-enrollment.go index 44a3b7fa..62961da5 100755 --- a/cmd/account/o-auth-enrollment/o-auth-enrollment.go +++ b/cmd/account/o-auth-enrollment/o-auth-enrollment.go @@ -78,6 +78,9 @@ var createCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -108,6 +111,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service OAuthEnrollment diff --git a/cmd/account/private-access/private-access.go b/cmd/account/private-access/private-access.go index 3c45b30e..6c35354f 100755 --- a/cmd/account/private-access/private-access.go +++ b/cmd/account/private-access/private-access.go @@ -86,6 +86,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -151,6 +154,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -216,6 +222,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -244,6 +253,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start replace command @@ -318,6 +330,9 @@ var replaceCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service PrivateAccess diff --git a/cmd/account/published-app-integration/published-app-integration.go b/cmd/account/published-app-integration/published-app-integration.go index d7ff8a08..6280f5cc 100755 --- a/cmd/account/published-app-integration/published-app-integration.go +++ b/cmd/account/published-app-integration/published-app-integration.go @@ -76,6 +76,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -125,6 +128,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -173,6 +179,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -201,6 +210,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -252,6 +264,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service PublishedAppIntegration diff --git a/cmd/account/service-principal-secrets/service-principal-secrets.go b/cmd/account/service-principal-secrets/service-principal-secrets.go index 34f7e7d0..5cf5d453 100755 --- a/cmd/account/service-principal-secrets/service-principal-secrets.go +++ b/cmd/account/service-principal-secrets/service-principal-secrets.go @@ -82,6 +82,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -134,6 +137,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -187,6 +193,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ServicePrincipalSecrets diff --git a/cmd/account/service-principals/service-principals.go b/cmd/account/service-principals/service-principals.go index 9cff5fff..df969b5e 100755 --- a/cmd/account/service-principals/service-principals.go +++ b/cmd/account/service-principals/service-principals.go @@ -80,6 +80,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -138,6 +141,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -197,6 +203,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -252,6 +261,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -313,6 +325,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -382,6 +397,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountServicePrincipals diff --git a/cmd/account/settings/settings.go b/cmd/account/settings/settings.go index 556ceb55..11f970a4 100755 --- a/cmd/account/settings/settings.go +++ b/cmd/account/settings/settings.go @@ -66,6 +66,9 @@ var readPersonalComputeSettingCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountSettings diff --git a/cmd/account/storage-credentials/storage-credentials.go b/cmd/account/storage-credentials/storage-credentials.go index 1065ba25..3baabacc 100755 --- a/cmd/account/storage-credentials/storage-credentials.go +++ b/cmd/account/storage-credentials/storage-credentials.go @@ -73,6 +73,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -123,6 +126,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -174,6 +180,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -223,6 +232,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -276,6 +288,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountStorageCredentials diff --git a/cmd/account/storage/storage.go b/cmd/account/storage/storage.go index c3cf7ec3..894d0f56 100755 --- a/cmd/account/storage/storage.go +++ b/cmd/account/storage/storage.go @@ -78,6 +78,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -137,6 +140,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -195,6 +201,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -223,6 +232,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Storage diff --git a/cmd/account/users/users.go b/cmd/account/users/users.go index 4f61522c..981f143e 100755 --- a/cmd/account/users/users.go +++ b/cmd/account/users/users.go @@ -88,6 +88,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -147,6 +150,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -205,6 +211,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -260,6 +269,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -321,6 +333,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -390,6 +405,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service AccountUsers diff --git a/cmd/account/vpc-endpoints/vpc-endpoints.go b/cmd/account/vpc-endpoints/vpc-endpoints.go index abdbcfa8..d04559eb 100755 --- a/cmd/account/vpc-endpoints/vpc-endpoints.go +++ b/cmd/account/vpc-endpoints/vpc-endpoints.go @@ -83,6 +83,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -149,6 +152,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -211,6 +217,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -243,6 +252,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service VpcEndpoints diff --git a/cmd/account/workspace-assignment/workspace-assignment.go b/cmd/account/workspace-assignment/workspace-assignment.go index 80f5b2d6..841c9c83 100755 --- a/cmd/account/workspace-assignment/workspace-assignment.go +++ b/cmd/account/workspace-assignment/workspace-assignment.go @@ -76,6 +76,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -127,6 +130,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -179,6 +185,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -232,6 +241,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service WorkspaceAssignment diff --git a/cmd/account/workspaces/workspaces.go b/cmd/account/workspaces/workspaces.go index 621e9e2c..76189dc4 100755 --- a/cmd/account/workspaces/workspaces.go +++ b/cmd/account/workspaces/workspaces.go @@ -113,6 +113,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -181,6 +184,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -255,6 +261,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -286,6 +295,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -481,6 +493,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Workspaces diff --git a/cmd/workspace/alerts/alerts.go b/cmd/workspace/alerts/alerts.go index 2928dfeb..57a612ce 100755 --- a/cmd/workspace/alerts/alerts.go +++ b/cmd/workspace/alerts/alerts.go @@ -74,6 +74,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -134,6 +137,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -192,6 +198,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -219,6 +228,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -268,6 +280,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Alerts diff --git a/cmd/workspace/catalogs/catalogs.go b/cmd/workspace/catalogs/catalogs.go index 6bb30f59..0f3ef061 100755 --- a/cmd/workspace/catalogs/catalogs.go +++ b/cmd/workspace/catalogs/catalogs.go @@ -79,6 +79,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -130,6 +133,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -180,6 +186,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -211,6 +220,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -267,6 +279,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Catalogs diff --git a/cmd/workspace/cluster-policies/cluster-policies.go b/cmd/workspace/cluster-policies/cluster-policies.go index e4a7da0f..5dff6aec 100755 --- a/cmd/workspace/cluster-policies/cluster-policies.go +++ b/cmd/workspace/cluster-policies/cluster-policies.go @@ -96,6 +96,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -155,6 +158,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start edit command @@ -211,6 +217,9 @@ var editCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -269,6 +278,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -319,6 +331,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ClusterPolicies diff --git a/cmd/workspace/clusters/clusters.go b/cmd/workspace/clusters/clusters.go index 36862338..aff3d0f9 100755 --- a/cmd/workspace/clusters/clusters.go +++ b/cmd/workspace/clusters/clusters.go @@ -18,26 +18,26 @@ var Cmd = &cobra.Command{ Short: `The Clusters API allows you to create, start, edit, list, terminate, and delete clusters.`, Long: `The Clusters API allows you to create, start, edit, list, terminate, and delete clusters. - + Databricks maps cluster node instance types to compute units known as DBUs. See the instance type pricing page for a list of the supported instance types and their corresponding DBUs. - + A Databricks cluster is a set of computation resources and configurations on which you run data engineering, data science, and data analytics workloads, such as production ETL pipelines, streaming analytics, ad-hoc analytics, and machine learning. - + You run these workloads as a set of commands in a notebook or as an automated job. Databricks makes a distinction between all-purpose clusters and job clusters. You use all-purpose clusters to analyze data collaboratively using interactive notebooks. You use job clusters to run fast and robust automated jobs. - + You can create an all-purpose cluster using the UI, CLI, or REST API. You can manually terminate and restart an all-purpose cluster. Multiple users can share such clusters to do collaborative interactive analysis. - + IMPORTANT: Databricks retains cluster configuration information for up to 200 all-purpose clusters terminated in the last 30 days and up to 30 job clusters recently terminated by the job scheduler. To keep an all-purpose cluster @@ -64,7 +64,7 @@ var changeOwnerCmd = &cobra.Command{ Use: "change-owner CLUSTER_ID OWNER_USERNAME", Short: `Change cluster owner.`, Long: `Change cluster owner. - + Change the owner of the cluster. You must be an admin to perform this operation.`, @@ -96,6 +96,9 @@ var changeOwnerCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create command @@ -144,17 +147,17 @@ var createCmd = &cobra.Command{ Use: "create SPARK_VERSION", Short: `Create new cluster.`, Long: `Create new cluster. - + Creates a new Spark cluster. This method will acquire new instances from the cloud provider if necessary. This method is asynchronous; the returned cluster_id can be used to poll the cluster status. When this method returns, the cluster will be in a PENDING state. The cluster will be usable once it enters a RUNNING state. - + Note: Databricks may not be able to acquire some of the requested nodes, due to cloud provider limitations (account limits, spot price, etc.) or transient network issues. - + If Databricks acquires at least 85% of the requested on-demand nodes, cluster creation will succeed. Otherwise the cluster will terminate with an informative error message.`, @@ -198,6 +201,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -221,7 +227,7 @@ var deleteCmd = &cobra.Command{ Use: "delete CLUSTER_ID", Short: `Terminate cluster.`, Long: `Terminate cluster. - + Terminates the Spark cluster with the specified ID. The cluster is removed asynchronously. Once the termination has completed, the cluster will be in a TERMINATED state. If the cluster is already in a TERMINATING or @@ -276,6 +282,9 @@ var deleteCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start edit command @@ -327,18 +336,18 @@ var editCmd = &cobra.Command{ Use: "edit CLUSTER_ID SPARK_VERSION", Short: `Update cluster configuration.`, Long: `Update cluster configuration. - + Updates the configuration of a cluster to match the provided attributes and size. A cluster can be updated if it is in a RUNNING or TERMINATED state. - + If a cluster is updated while in a RUNNING state, it will be restarted so that the new attributes can take effect. - + If a cluster is updated while in a TERMINATED state, it will remain TERMINATED. The next time it is started using the clusters/start API, the new attributes will take effect. Any attempt to update a cluster in any other state will be rejected with an INVALID_STATE error code. - + Clusters created by the Databricks Jobs service cannot be edited.`, Annotations: map[string]string{}, @@ -381,6 +390,9 @@ var editCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start events command @@ -406,7 +418,7 @@ var eventsCmd = &cobra.Command{ Use: "events CLUSTER_ID", Short: `List cluster activity events.`, Long: `List cluster activity events. - + Retrieves a list of events about the activity of a cluster. This API is paginated. If there are more events to read, the response includes all the nparameters necessary to request the next page of events.`, @@ -448,6 +460,9 @@ var eventsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -471,7 +486,7 @@ var getCmd = &cobra.Command{ Use: "get CLUSTER_ID", Short: `Get cluster info.`, Long: `Get cluster info. - + Retrieves the information for a cluster given its identifier. Clusters can be described while they are running, or up to 60 days after they are terminated.`, @@ -512,6 +527,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -532,11 +550,11 @@ var listCmd = &cobra.Command{ Use: "list", Short: `List all clusters.`, Long: `List all clusters. - + Return information about all pinned clusters, active clusters, up to 200 of the most recently terminated all-purpose clusters in the past 30 days, and up to 30 of the most recently terminated job clusters in the past 30 days. - + For example, if there is 1 pinned cluster, 4 active clusters, 45 terminated all-purpose clusters in the past 30 days, and 50 terminated job clusters in the past 30 days, then this API returns the 1 pinned cluster, 4 active @@ -569,6 +587,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-node-types command @@ -582,7 +603,7 @@ var listNodeTypesCmd = &cobra.Command{ Use: "list-node-types", Short: `List node types.`, Long: `List node types. - + Returns a list of supported Spark node types. These node types can be used to launch a cluster.`, @@ -597,6 +618,9 @@ var listNodeTypesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-zones command @@ -610,7 +634,7 @@ var listZonesCmd = &cobra.Command{ Use: "list-zones", Short: `List availability zones.`, Long: `List availability zones. - + Returns a list of availability zones where clusters can be created in (For example, us-west-2a). These zones can be used to launch a cluster.`, @@ -625,6 +649,9 @@ var listZonesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start permanent-delete command @@ -643,10 +670,10 @@ var permanentDeleteCmd = &cobra.Command{ Use: "permanent-delete CLUSTER_ID", Short: `Permanently delete cluster.`, Long: `Permanently delete cluster. - + Permanently deletes a Spark cluster. This cluster is terminated and resources are asynchronously removed. - + In addition, users will no longer see permanently deleted clusters in the cluster list, and API users can no longer perform any action on permanently deleted clusters.`, @@ -688,6 +715,9 @@ var permanentDeleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start pin command @@ -706,7 +736,7 @@ var pinCmd = &cobra.Command{ Use: "pin CLUSTER_ID", Short: `Pin cluster.`, Long: `Pin cluster. - + Pinning a cluster ensures that the cluster will always be returned by the ListClusters API. Pinning a cluster that is already pinned will have no effect. This API can only be called by workspace admins.`, @@ -748,6 +778,9 @@ var pinCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start resize command @@ -774,7 +807,7 @@ var resizeCmd = &cobra.Command{ Use: "resize CLUSTER_ID", Short: `Resize cluster.`, Long: `Resize cluster. - + Resizes a cluster to have a desired number of workers. This will fail unless the cluster is in a RUNNING state.`, @@ -827,6 +860,9 @@ var resizeCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start restart command @@ -852,7 +888,7 @@ var restartCmd = &cobra.Command{ Use: "restart CLUSTER_ID", Short: `Restart cluster.`, Long: `Restart cluster. - + Restarts a Spark cluster with the supplied ID. If the cluster is not currently in a RUNNING state, nothing will happen.`, @@ -905,6 +941,9 @@ var restartCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start spark-versions command @@ -918,7 +957,7 @@ var sparkVersionsCmd = &cobra.Command{ Use: "spark-versions", Short: `List available Spark versions.`, Long: `List available Spark versions. - + Returns the list of available Spark versions. These versions can be used to launch a cluster.`, @@ -933,6 +972,9 @@ var sparkVersionsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start start command @@ -956,10 +998,10 @@ var startCmd = &cobra.Command{ Use: "start CLUSTER_ID", Short: `Start terminated cluster.`, Long: `Start terminated cluster. - + Starts a terminated Spark cluster with the supplied ID. This works similar to createCluster except: - + * The previous cluster id and attributes are preserved. * The cluster starts with the last specified cluster size. * If the previous cluster was an autoscaling cluster, the current cluster starts with the minimum number of @@ -1015,6 +1057,9 @@ var startCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start unpin command @@ -1033,7 +1078,7 @@ var unpinCmd = &cobra.Command{ Use: "unpin CLUSTER_ID", Short: `Unpin cluster.`, Long: `Unpin cluster. - + Unpinning a cluster will allow the cluster to eventually be removed from the ListClusters API. Unpinning a cluster that is not pinned will have no effect. This API can only be called by workspace admins.`, @@ -1075,6 +1120,9 @@ var unpinCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Clusters diff --git a/cmd/workspace/connections/connections.go b/cmd/workspace/connections/connections.go index 9d9d76a7..a26189a8 100755 --- a/cmd/workspace/connections/connections.go +++ b/cmd/workspace/connections/connections.go @@ -90,6 +90,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -148,6 +151,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -206,6 +212,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -233,6 +242,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -279,6 +291,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Connections diff --git a/cmd/workspace/current-user/current-user.go b/cmd/workspace/current-user/current-user.go index ef493208..80e539ec 100755 --- a/cmd/workspace/current-user/current-user.go +++ b/cmd/workspace/current-user/current-user.go @@ -43,6 +43,9 @@ var meCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service CurrentUser diff --git a/cmd/workspace/dashboards/dashboards.go b/cmd/workspace/dashboards/dashboards.go index 24277603..26c8b299 100755 --- a/cmd/workspace/dashboards/dashboards.go +++ b/cmd/workspace/dashboards/dashboards.go @@ -74,6 +74,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -133,6 +136,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -192,6 +198,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -244,6 +253,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start restore command @@ -302,6 +314,9 @@ var restoreCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Dashboards diff --git a/cmd/workspace/data-sources/data-sources.go b/cmd/workspace/data-sources/data-sources.go index cd1d1ebc..513ce214 100755 --- a/cmd/workspace/data-sources/data-sources.go +++ b/cmd/workspace/data-sources/data-sources.go @@ -53,6 +53,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service DataSources diff --git a/cmd/workspace/experiments/experiments.go b/cmd/workspace/experiments/experiments.go index be5176c9..5ab5b94e 100755 --- a/cmd/workspace/experiments/experiments.go +++ b/cmd/workspace/experiments/experiments.go @@ -83,6 +83,9 @@ var createExperimentCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-run command @@ -138,6 +141,9 @@ var createRunCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-experiment command @@ -188,6 +194,9 @@ var deleteExperimentCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-run command @@ -236,6 +245,9 @@ var deleteRunCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-tag command @@ -286,6 +298,9 @@ var deleteTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-by-name command @@ -342,6 +357,9 @@ var getByNameCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-experiment command @@ -390,6 +408,9 @@ var getExperimentCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-history command @@ -443,6 +464,9 @@ var getHistoryCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-run command @@ -498,6 +522,9 @@ var getRunCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-artifacts command @@ -551,6 +578,9 @@ var listArtifactsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-experiments command @@ -602,6 +632,9 @@ var listExperimentsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start log-batch command @@ -690,6 +723,9 @@ var logBatchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start log-inputs command @@ -741,6 +777,9 @@ var logInputsCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start log-metric command @@ -803,6 +842,9 @@ var logMetricCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start log-model command @@ -854,6 +896,9 @@ var logModelCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start log-param command @@ -909,6 +954,9 @@ var logParamCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start restore-experiment command @@ -962,6 +1010,9 @@ var restoreExperimentCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start restore-run command @@ -1010,6 +1061,9 @@ var restoreRunCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start search-experiments command @@ -1063,6 +1117,9 @@ var searchExperimentsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start search-runs command @@ -1119,6 +1176,9 @@ var searchRunsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-experiment-tag command @@ -1169,6 +1229,9 @@ var setExperimentTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-tag command @@ -1222,6 +1285,9 @@ var setTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-experiment command @@ -1272,6 +1338,9 @@ var updateExperimentCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-run command @@ -1324,6 +1393,9 @@ var updateRunCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Experiments diff --git a/cmd/workspace/external-locations/external-locations.go b/cmd/workspace/external-locations/external-locations.go index 2ff6cea9..91696ef4 100755 --- a/cmd/workspace/external-locations/external-locations.go +++ b/cmd/workspace/external-locations/external-locations.go @@ -85,6 +85,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -136,6 +139,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -186,6 +192,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -216,6 +225,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -274,6 +286,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ExternalLocations diff --git a/cmd/workspace/functions/functions.go b/cmd/workspace/functions/functions.go index e3c9fef2..68128165 100755 --- a/cmd/workspace/functions/functions.go +++ b/cmd/workspace/functions/functions.go @@ -120,6 +120,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -185,6 +188,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -249,6 +255,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -304,6 +313,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -371,6 +383,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Functions diff --git a/cmd/workspace/git-credentials/git-credentials.go b/cmd/workspace/git-credentials/git-credentials.go index 69f2c7e8..c2f1fece 100755 --- a/cmd/workspace/git-credentials/git-credentials.go +++ b/cmd/workspace/git-credentials/git-credentials.go @@ -78,6 +78,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -139,6 +142,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -200,6 +206,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -228,6 +237,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -293,6 +305,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service GitCredentials diff --git a/cmd/workspace/global-init-scripts/global-init-scripts.go b/cmd/workspace/global-init-scripts/global-init-scripts.go index 850539bd..ddc0ff73 100755 --- a/cmd/workspace/global-init-scripts/global-init-scripts.go +++ b/cmd/workspace/global-init-scripts/global-init-scripts.go @@ -79,6 +79,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -137,6 +140,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -195,6 +201,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -225,6 +234,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -279,6 +291,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service GlobalInitScripts diff --git a/cmd/workspace/grants/grants.go b/cmd/workspace/grants/grants.go index 9204f760..bd3e2ee2 100755 --- a/cmd/workspace/grants/grants.go +++ b/cmd/workspace/grants/grants.go @@ -83,6 +83,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-effective command @@ -137,6 +140,9 @@ var getEffectiveCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -191,6 +197,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Grants diff --git a/cmd/workspace/groups/groups.go b/cmd/workspace/groups/groups.go index 1aec4665..d8c76b8a 100755 --- a/cmd/workspace/groups/groups.go +++ b/cmd/workspace/groups/groups.go @@ -81,6 +81,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -139,6 +142,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -197,6 +203,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -252,6 +261,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -312,6 +324,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -378,6 +393,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Groups diff --git a/cmd/workspace/instance-pools/instance-pools.go b/cmd/workspace/instance-pools/instance-pools.go index 322a5583..42d73461 100755 --- a/cmd/workspace/instance-pools/instance-pools.go +++ b/cmd/workspace/instance-pools/instance-pools.go @@ -97,6 +97,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -156,6 +159,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start edit command @@ -218,6 +224,9 @@ var editCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -276,6 +285,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -303,6 +315,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service InstancePools diff --git a/cmd/workspace/instance-profiles/instance-profiles.go b/cmd/workspace/instance-profiles/instance-profiles.go index a5bbb6f5..8b7e957d 100755 --- a/cmd/workspace/instance-profiles/instance-profiles.go +++ b/cmd/workspace/instance-profiles/instance-profiles.go @@ -75,6 +75,9 @@ var addCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start edit command @@ -140,6 +143,9 @@ var editCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -169,6 +175,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start remove command @@ -220,6 +229,9 @@ var removeCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service InstanceProfiles diff --git a/cmd/workspace/ip-access-lists/ip-access-lists.go b/cmd/workspace/ip-access-lists/ip-access-lists.go index ad74cd7c..2c6d06d8 100755 --- a/cmd/workspace/ip-access-lists/ip-access-lists.go +++ b/cmd/workspace/ip-access-lists/ip-access-lists.go @@ -103,6 +103,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -161,6 +164,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -219,6 +225,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -246,6 +255,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start replace command @@ -313,6 +325,9 @@ var replaceCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -384,6 +399,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service IpAccessLists diff --git a/cmd/workspace/jobs/jobs.go b/cmd/workspace/jobs/jobs.go index ccf7d94d..f438b03c 100755 --- a/cmd/workspace/jobs/jobs.go +++ b/cmd/workspace/jobs/jobs.go @@ -99,6 +99,9 @@ var cancelAllRunsCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start cancel-run command @@ -185,6 +188,9 @@ var cancelRunCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create command @@ -249,6 +255,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -310,6 +319,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-run command @@ -371,6 +383,9 @@ var deleteRunCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start export-run command @@ -434,6 +449,9 @@ var exportRunCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -495,6 +513,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-run command @@ -563,6 +584,9 @@ var getRunCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-run-output command @@ -633,6 +657,9 @@ var getRunOutputCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -686,6 +713,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-runs command @@ -744,6 +774,9 @@ var listRunsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start repair-run command @@ -843,6 +876,9 @@ var repairRunCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start reset command @@ -892,6 +928,9 @@ var resetCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start run-now command @@ -987,6 +1026,9 @@ var runNowCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start submit command @@ -1070,6 +1112,9 @@ var submitCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -1135,6 +1180,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Jobs diff --git a/cmd/workspace/libraries/libraries.go b/cmd/workspace/libraries/libraries.go index b2d3badf..e66e6b70 100755 --- a/cmd/workspace/libraries/libraries.go +++ b/cmd/workspace/libraries/libraries.go @@ -67,6 +67,9 @@ var allClusterStatusesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start cluster-status command @@ -129,6 +132,9 @@ var clusterStatusCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start install command @@ -179,6 +185,9 @@ var installCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start uninstall command @@ -226,6 +235,9 @@ var uninstallCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Libraries diff --git a/cmd/workspace/metastores/metastores.go b/cmd/workspace/metastores/metastores.go index cd0f0ced..71e2d122 100755 --- a/cmd/workspace/metastores/metastores.go +++ b/cmd/workspace/metastores/metastores.go @@ -86,6 +86,9 @@ var assignCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create command @@ -137,6 +140,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start current command @@ -164,6 +170,9 @@ var currentCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -224,6 +233,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -283,6 +295,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -312,6 +327,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start maintenance command @@ -367,6 +385,9 @@ var maintenanceCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start summary command @@ -395,6 +416,9 @@ var summaryCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start unassign command @@ -447,6 +471,9 @@ var unassignCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -514,6 +541,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-assignment command @@ -581,6 +611,9 @@ var updateAssignmentCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Metastores diff --git a/cmd/workspace/model-registry/model-registry.go b/cmd/workspace/model-registry/model-registry.go index e180b869..087a39c6 100755 --- a/cmd/workspace/model-registry/model-registry.go +++ b/cmd/workspace/model-registry/model-registry.go @@ -79,6 +79,9 @@ var approveTransitionRequestCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-comment command @@ -131,6 +134,9 @@ var createCommentCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-model command @@ -185,6 +191,9 @@ var createModelCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-model-version command @@ -239,6 +248,9 @@ var createModelVersionCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-transition-request command @@ -294,6 +306,9 @@ var createTransitionRequestCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create-webhook command @@ -346,6 +361,9 @@ var createWebhookCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-comment command @@ -394,6 +412,9 @@ var deleteCommentCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-model command @@ -442,6 +463,9 @@ var deleteModelCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-model-tag command @@ -491,6 +515,9 @@ var deleteModelTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-model-version command @@ -540,6 +567,9 @@ var deleteModelVersionCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-model-version-tag command @@ -590,6 +620,9 @@ var deleteModelVersionTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-transition-request command @@ -646,6 +679,9 @@ var deleteTransitionRequestCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-webhook command @@ -697,6 +733,9 @@ var deleteWebhookCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-latest-versions command @@ -747,6 +786,9 @@ var getLatestVersionsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-model command @@ -799,6 +841,9 @@ var getModelCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-model-version command @@ -848,6 +893,9 @@ var getModelVersionCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-model-version-download-uri command @@ -897,6 +945,9 @@ var getModelVersionDownloadUriCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-models command @@ -948,6 +999,9 @@ var listModelsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-transition-requests command @@ -997,6 +1051,9 @@ var listTransitionRequestsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-webhooks command @@ -1050,6 +1107,9 @@ var listWebhooksCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start reject-transition-request command @@ -1105,6 +1165,9 @@ var rejectTransitionRequestCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start rename-model command @@ -1155,6 +1218,9 @@ var renameModelCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start search-model-versions command @@ -1207,6 +1273,9 @@ var searchModelVersionsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start search-models command @@ -1259,6 +1328,9 @@ var searchModelsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-model-tag command @@ -1309,6 +1381,9 @@ var setModelTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-model-version-tag command @@ -1360,6 +1435,9 @@ var setModelVersionTagCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start test-registry-webhook command @@ -1412,6 +1490,9 @@ var testRegistryWebhookCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start transition-stage command @@ -1475,6 +1556,9 @@ var transitionStageCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-comment command @@ -1524,6 +1608,9 @@ var updateCommentCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-model command @@ -1574,6 +1661,9 @@ var updateModelCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-model-version command @@ -1625,6 +1715,9 @@ var updateModelVersionCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-webhook command @@ -1681,6 +1774,9 @@ var updateWebhookCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ModelRegistry diff --git a/cmd/workspace/permissions/permissions.go b/cmd/workspace/permissions/permissions.go index d053efac..f34a7ac7 100755 --- a/cmd/workspace/permissions/permissions.go +++ b/cmd/workspace/permissions/permissions.go @@ -68,6 +68,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-permission-levels command @@ -117,6 +120,9 @@ var getPermissionLevelsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set command @@ -169,6 +175,9 @@ var setCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -220,6 +229,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Permissions diff --git a/cmd/workspace/pipelines/pipelines.go b/cmd/workspace/pipelines/pipelines.go index 358124f5..ebf484b6 100755 --- a/cmd/workspace/pipelines/pipelines.go +++ b/cmd/workspace/pipelines/pipelines.go @@ -100,6 +100,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -158,6 +161,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -219,6 +225,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-update command @@ -268,6 +277,9 @@ var getUpdateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-pipeline-events command @@ -331,6 +343,9 @@ var listPipelineEventsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-pipelines command @@ -383,6 +398,9 @@ var listPipelinesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-updates command @@ -445,6 +463,9 @@ var listUpdatesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start reset command @@ -520,6 +541,9 @@ var resetCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start start-update command @@ -583,6 +607,9 @@ var startUpdateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start stop command @@ -658,6 +685,9 @@ var stopCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -736,6 +766,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Pipelines diff --git a/cmd/workspace/policy-families/policy-families.go b/cmd/workspace/policy-families/policy-families.go index fa68c430..d12572df 100755 --- a/cmd/workspace/policy-families/policy-families.go +++ b/cmd/workspace/policy-families/policy-families.go @@ -69,6 +69,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -115,6 +118,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service PolicyFamilies diff --git a/cmd/workspace/providers/providers.go b/cmd/workspace/providers/providers.go index b6dc8b3c..b1513591 100755 --- a/cmd/workspace/providers/providers.go +++ b/cmd/workspace/providers/providers.go @@ -75,6 +75,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -134,6 +137,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -194,6 +200,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -246,6 +255,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-shares command @@ -306,6 +318,9 @@ var listSharesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -372,6 +387,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Providers diff --git a/cmd/workspace/queries/queries.go b/cmd/workspace/queries/queries.go index 2f314cd8..2db5855a 100755 --- a/cmd/workspace/queries/queries.go +++ b/cmd/workspace/queries/queries.go @@ -84,6 +84,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -144,6 +147,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -203,6 +209,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -256,6 +265,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start restore command @@ -315,6 +327,9 @@ var restoreCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -381,6 +396,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Queries diff --git a/cmd/workspace/query-history/query-history.go b/cmd/workspace/query-history/query-history.go index 76d3a931..1ed8a488 100755 --- a/cmd/workspace/query-history/query-history.go +++ b/cmd/workspace/query-history/query-history.go @@ -71,6 +71,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service QueryHistory diff --git a/cmd/workspace/recipient-activation/recipient-activation.go b/cmd/workspace/recipient-activation/recipient-activation.go index 873e62d4..f0af854b 100755 --- a/cmd/workspace/recipient-activation/recipient-activation.go +++ b/cmd/workspace/recipient-activation/recipient-activation.go @@ -65,6 +65,9 @@ var getActivationUrlInfoCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start retrieve-token command @@ -114,6 +117,9 @@ var retrieveTokenCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service RecipientActivation diff --git a/cmd/workspace/recipients/recipients.go b/cmd/workspace/recipients/recipients.go index 87e7ee2d..98d8fb08 100755 --- a/cmd/workspace/recipients/recipients.go +++ b/cmd/workspace/recipients/recipients.go @@ -80,6 +80,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -139,6 +142,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -199,6 +205,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -251,6 +260,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start rotate-token command @@ -304,6 +316,9 @@ var rotateTokenCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start share-permissions command @@ -363,6 +378,9 @@ var sharePermissionsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -429,6 +447,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Recipients diff --git a/cmd/workspace/repos/repos.go b/cmd/workspace/repos/repos.go index 8ab48a43..7070493a 100755 --- a/cmd/workspace/repos/repos.go +++ b/cmd/workspace/repos/repos.go @@ -82,6 +82,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -143,6 +146,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -204,6 +210,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -255,6 +264,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -321,6 +333,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Repos diff --git a/cmd/workspace/schemas/schemas.go b/cmd/workspace/schemas/schemas.go index ee73757e..65737f40 100755 --- a/cmd/workspace/schemas/schemas.go +++ b/cmd/workspace/schemas/schemas.go @@ -78,6 +78,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -137,6 +140,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -197,6 +203,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -249,6 +258,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -316,6 +328,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Schemas diff --git a/cmd/workspace/secrets/secrets.go b/cmd/workspace/secrets/secrets.go index 6438a7f7..b40509be 100755 --- a/cmd/workspace/secrets/secrets.go +++ b/cmd/workspace/secrets/secrets.go @@ -84,6 +84,9 @@ var createScopeCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-acl command @@ -138,6 +141,9 @@ var deleteAclCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-scope command @@ -190,6 +196,9 @@ var deleteScopeCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete-secret command @@ -244,6 +253,9 @@ var deleteSecretCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-acl command @@ -298,6 +310,9 @@ var getAclCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-acls command @@ -351,6 +366,9 @@ var listAclsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-scopes command @@ -381,6 +399,9 @@ var listScopesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-secrets command @@ -436,6 +457,9 @@ var listSecretsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start put-acl command @@ -514,6 +538,9 @@ var putAclCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Secrets diff --git a/cmd/workspace/service-principals/service-principals.go b/cmd/workspace/service-principals/service-principals.go index 15c3ef9f..71760a55 100755 --- a/cmd/workspace/service-principals/service-principals.go +++ b/cmd/workspace/service-principals/service-principals.go @@ -80,6 +80,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -138,6 +141,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -197,6 +203,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -252,6 +261,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -313,6 +325,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -382,6 +397,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ServicePrincipals diff --git a/cmd/workspace/serving-endpoints/serving-endpoints.go b/cmd/workspace/serving-endpoints/serving-endpoints.go index 28aaaff2..a8822355 100755 --- a/cmd/workspace/serving-endpoints/serving-endpoints.go +++ b/cmd/workspace/serving-endpoints/serving-endpoints.go @@ -82,6 +82,9 @@ var buildLogsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start create command @@ -143,6 +146,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -189,6 +195,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start export-metrics command @@ -239,6 +248,9 @@ var exportMetricsCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -287,6 +299,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -312,6 +327,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start logs command @@ -362,6 +380,9 @@ var logsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start query command @@ -408,6 +429,9 @@ var queryCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-config command @@ -476,6 +500,9 @@ var updateConfigCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service ServingEndpoints diff --git a/cmd/workspace/shares/shares.go b/cmd/workspace/shares/shares.go index 6347deb1..c9c6734d 100755 --- a/cmd/workspace/shares/shares.go +++ b/cmd/workspace/shares/shares.go @@ -69,6 +69,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -118,6 +121,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -169,6 +175,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -198,6 +207,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start share-permissions command @@ -247,6 +259,9 @@ var sharePermissionsCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -313,6 +328,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update-permissions command @@ -367,6 +385,9 @@ var updatePermissionsCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Shares diff --git a/cmd/workspace/storage-credentials/storage-credentials.go b/cmd/workspace/storage-credentials/storage-credentials.go index b018256c..ffec9078 100755 --- a/cmd/workspace/storage-credentials/storage-credentials.go +++ b/cmd/workspace/storage-credentials/storage-credentials.go @@ -94,6 +94,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -155,6 +158,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -215,6 +221,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -246,6 +255,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -317,6 +329,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start validate command @@ -384,6 +399,9 @@ var validateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service StorageCredentials diff --git a/cmd/workspace/system-schemas/system-schemas.go b/cmd/workspace/system-schemas/system-schemas.go index db97e147..2eb7c54e 100755 --- a/cmd/workspace/system-schemas/system-schemas.go +++ b/cmd/workspace/system-schemas/system-schemas.go @@ -72,6 +72,9 @@ var disableCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start enable command @@ -100,6 +103,9 @@ var enableCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -149,6 +155,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service SystemSchemas diff --git a/cmd/workspace/table-constraints/table-constraints.go b/cmd/workspace/table-constraints/table-constraints.go index 8de9315e..a38e8a4f 100755 --- a/cmd/workspace/table-constraints/table-constraints.go +++ b/cmd/workspace/table-constraints/table-constraints.go @@ -85,6 +85,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -146,6 +149,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service TableConstraints diff --git a/cmd/workspace/tables/tables.go b/cmd/workspace/tables/tables.go index bae67fa7..7a6a2cee 100755 --- a/cmd/workspace/tables/tables.go +++ b/cmd/workspace/tables/tables.go @@ -89,6 +89,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -153,6 +156,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -211,6 +217,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list-summaries command @@ -284,6 +293,9 @@ var listSummariesCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Tables diff --git a/cmd/workspace/token-management/token-management.go b/cmd/workspace/token-management/token-management.go index 405224ec..749dbdb0 100755 --- a/cmd/workspace/token-management/token-management.go +++ b/cmd/workspace/token-management/token-management.go @@ -75,6 +75,9 @@ var createOboTokenCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -133,6 +136,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -191,6 +197,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -241,6 +250,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service TokenManagement diff --git a/cmd/workspace/tokens/tokens.go b/cmd/workspace/tokens/tokens.go index fbf64f00..e0fc5a9b 100755 --- a/cmd/workspace/tokens/tokens.go +++ b/cmd/workspace/tokens/tokens.go @@ -73,6 +73,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -134,6 +137,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -161,6 +167,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Tokens diff --git a/cmd/workspace/users/users.go b/cmd/workspace/users/users.go index 776a95e6..0a2ced7b 100755 --- a/cmd/workspace/users/users.go +++ b/cmd/workspace/users/users.go @@ -88,6 +88,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -147,6 +150,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -205,6 +211,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -260,6 +269,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start patch command @@ -321,6 +333,9 @@ var patchCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -390,6 +405,9 @@ var updateCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Users diff --git a/cmd/workspace/volumes/volumes.go b/cmd/workspace/volumes/volumes.go index f65f4ab4..d1400f52 100755 --- a/cmd/workspace/volumes/volumes.go +++ b/cmd/workspace/volumes/volumes.go @@ -103,6 +103,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -165,6 +168,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -224,6 +230,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start read command @@ -287,6 +296,9 @@ var readCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -356,6 +368,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Volumes diff --git a/cmd/workspace/warehouses/warehouses.go b/cmd/workspace/warehouses/warehouses.go index efea3c48..9b2a5c00 100755 --- a/cmd/workspace/warehouses/warehouses.go +++ b/cmd/workspace/warehouses/warehouses.go @@ -107,6 +107,9 @@ var createCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start delete command @@ -165,6 +168,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start edit command @@ -261,6 +267,9 @@ var editCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get command @@ -324,6 +333,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-workspace-warehouse-config command @@ -352,6 +364,9 @@ var getWorkspaceWarehouseConfigCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -401,6 +416,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-workspace-warehouse-config command @@ -459,6 +477,9 @@ var setWorkspaceWarehouseConfigCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start start command @@ -541,6 +562,9 @@ var startCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start stop command @@ -623,6 +647,9 @@ var stopCmd = &cobra.Command{ } return cmdio.Render(ctx, info) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Warehouses diff --git a/cmd/workspace/workspace-bindings/workspace-bindings.go b/cmd/workspace/workspace-bindings/workspace-bindings.go index f29e0d49..4c05f60b 100755 --- a/cmd/workspace/workspace-bindings/workspace-bindings.go +++ b/cmd/workspace/workspace-bindings/workspace-bindings.go @@ -71,6 +71,9 @@ var getCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start update command @@ -123,6 +126,9 @@ var updateCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service WorkspaceBindings diff --git a/cmd/workspace/workspace-conf/workspace-conf.go b/cmd/workspace/workspace-conf/workspace-conf.go index 9bd09df5..0a0a48fd 100755 --- a/cmd/workspace/workspace-conf/workspace-conf.go +++ b/cmd/workspace/workspace-conf/workspace-conf.go @@ -65,6 +65,9 @@ var getStatusCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start set-status command @@ -113,6 +116,9 @@ var setStatusCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service WorkspaceConf diff --git a/cmd/workspace/workspace/workspace.go b/cmd/workspace/workspace/workspace.go index 9b938645..b9026381 100755 --- a/cmd/workspace/workspace/workspace.go +++ b/cmd/workspace/workspace/workspace.go @@ -90,6 +90,9 @@ var deleteCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start export command @@ -157,6 +160,9 @@ var exportCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start get-status command @@ -206,6 +212,9 @@ var getStatusCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start import command @@ -262,6 +271,9 @@ var importCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start list command @@ -314,6 +326,9 @@ var listCmd = &cobra.Command{ } return cmdio.Render(ctx, response) }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // start mkdirs command @@ -377,6 +392,9 @@ var mkdirsCmd = &cobra.Command{ } return nil }, + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + ValidArgsFunction: cobra.NoFileCompletions, } // end service Workspace