Documentation
¶
Overview ¶
Shell completion for entity references.
A reference completes in two steps. With no space on the line, the spaces are offered first, each as "space/" with no trailing blank so the shell stays on the word; once the word names a space, the entities in it are offered as "space/slug". The completed form is the qualified one on purpose: a command assembled with the tab key then carries its own space wherever it is pasted or scripted, and keeps working when the default space is no longer consulted. With --space on the line the space is already known, so the bare slugs in it are offered instead.
Completion runs from cobra's hidden __complete command, outside the target command's own pre-run, so no space has been resolved; it reads the --space flag and the context itself. Nothing may reach stdout except through the return value, and a server that does not answer promptly must not hang the shell, so every lookup runs under a short deadline and every failure completes to nothing.
Entity resolution for the CLI: one function per entity type, each a thin adapter over the cubapi resolvers.
The adapters exist because cub still carries its space as a string global that may be a UUID, "*", or empty; they translate that into the typed ResolveOpts the library takes. When the space becomes a resolved value on the command's run context, the adapters lose their spaceID parameter and most of them disappear.
Every lookup accepts the spellings a person writes: a slug, a "space/slug", or a UUID. A UUID is never scoped by space -- see cubapi's resolve.go.
Source Files
¶
- api.go
- api_helpers.go
- apply.go
- attestation.go
- attestation_create.go
- attestation_get.go
- attestation_list.go
- attestation_revoke.go
- attribute.go
- attribute_create.go
- attribute_delete.go
- attribute_get.go
- attribute_list.go
- attribute_update.go
- auth.go
- auth_browser_session.go
- auth_get_token.go
- auth_login.go
- auth_renew.go
- auth_status.go
- auth_switch.go
- auth_test_login.go
- backing_unit_display.go
- backing_unit_flags.go
- changeorder.go
- changeorder_create.go
- changeorder_delete.go
- changeorder_get.go
- changeorder_list.go
- changeorder_refresh_stage.go
- changeorder_update.go
- changeset.go
- changeset_create.go
- changeset_delete.go
- changeset_get.go
- changeset_list.go
- changeset_update.go
- changeworkflow.go
- changeworkflow_create.go
- changeworkflow_delete.go
- changeworkflow_eval.go
- changeworkflow_flags.go
- changeworkflow_get.go
- changeworkflow_list.go
- changeworkflow_space_stages.go
- changeworkflow_update.go
- channel.go
- channel_create.go
- channel_delete.go
- channel_get.go
- channel_list.go
- channel_update.go
- clearance.go
- clipboard.go
- cluster.go
- cluster_api.go
- cluster_app_bootstrap.go
- cluster_argo.go
- cluster_argobot.go
- cluster_attach.go
- cluster_controller_install.go
- cluster_create.go
- cluster_creds_leftover.go
- cluster_detach.go
- cluster_docker.go
- cluster_down.go
- cluster_eks.go
- cluster_existing_secrets.go
- cluster_flux.go
- cluster_k8sbot_install.go
- cluster_kind.go
- cluster_list.go
- cluster_oci.go
- cluster_open.go
- cluster_record.go
- cluster_rollback.go
- cluster_secrets_dir.go
- cluster_state.go
- cluster_svc_account.go
- cluster_sveltos.go
- cluster_up.go
- cluster_wired_hint.go
- command.go
- command_run.go
- completion.go
- component.go
- component_create.go
- component_delete.go
- component_get.go
- component_list.go
- component_open.go
- component_tree.go
- component_update.go
- config_diff.go
- context.go
- context_create.go
- context_delete.go
- context_get.go
- context_list.go
- context_rename.go
- context_use.go
- dataset.go
- dataset_load.go
- display.go
- docgen.go
- dynamic_columns.go
- entity_edit.go
- entity_edit_commands.go
- entity_fields.go
- entity_input.go
- entity_list_flags.go
- entity_move.go
- entity_move_commands.go
- entity_rename.go
- entity_rename_commands.go
- explain.go
- explain_where.go
- file.go
- filter.go
- filter_create.go
- filter_delete.go
- filter_get.go
- filter_list.go
- filter_update.go
- flags.go
- function.go
- function_display.go
- function_do.go
- function_exec.go
- function_explain.go
- function_get.go
- function_line.go
- function_list.go
- function_local.go
- function_resource.go
- function_set.go
- function_show.go
- function_verb.go
- function_vet.go
- group.go
- group_get.go
- group_list.go
- group_member.go
- guard_stamp.go
- help.go
- info.go
- invocation.go
- invocation_create.go
- invocation_delete.go
- invocation_exec.go
- invocation_flags.go
- invocation_get.go
- invocation_list.go
- invocation_update.go
- k8s.go
- k8s_appconfig.go
- k8s_collect.go
- k8s_crd_spec.go
- k8s_get.go
- k8s_refresh.go
- k8s_resource_types.go
- k8s_resources.go
- k8s_source.go
- k8s_types.go
- key.go
- link.go
- link_create.go
- link_delete.go
- link_element_flags.go
- link_get.go
- link_list.go
- link_update.go
- list_view.go
- main.go
- mutation.go
- mutation_get.go
- mutation_list.go
- mutations.go
- oauthclient.go
- oauthclient_create.go
- oauthclient_delete.go
- oauthclient_get.go
- oauthclient_list.go
- organization.go
- organization_get.go
- organization_list.go
- organization_member.go
- organization_member_create.go
- organization_member_delete.go
- organization_member_get.go
- organization_member_list.go
- organization_update.go
- other_data.go
- output_format.go
- parse.go
- patch_utils.go
- plugin.go
- plugin_exec.go
- plugin_install.go
- plugin_uninstall.go
- plugin_upgrade.go
- release.go
- release_delete.go
- release_get.go
- release_list.go
- release_publish.go
- release_update.go
- release_withdraw.go
- resolve.go
- resource.go
- resource_data.go
- resource_list.go
- review_comment.go
- review_comment_create.go
- review_comment_delete.go
- review_comment_get.go
- review_comment_list.go
- review_comment_update.go
- review_requests.go
- revision.go
- revision_data.go
- revision_get.go
- revision_list.go
- revision_mutation_sources.go
- run.go
- serviceaccount.go
- serviceaccount_create.go
- serviceaccount_delete.go
- serviceaccount_get.go
- serviceaccount_key.go
- serviceaccount_list.go
- serviceaccount_token.go
- serviceaccount_update.go
- space.go
- space_attributes.go
- space_create.go
- space_delete.go
- space_get.go
- space_list.go
- space_new_prefix.go
- space_open.go
- space_update.go
- standard_labels.go
- tag.go
- tag_create.go
- tag_delete.go
- tag_get.go
- tag_list.go
- tag_update.go
- target.go
- target_create.go
- target_delete.go
- target_get.go
- target_list.go
- target_open.go
- target_update.go
- transport.go
- trigger.go
- trigger_create.go
- trigger_delete.go
- trigger_enforcement.go
- trigger_get.go
- trigger_list.go
- trigger_update.go
- unit.go
- unit_blame.go
- unit_blame_display.go
- unit_blob.go
- unit_conflicts.go
- unit_create.go
- unit_data.go
- unit_data_api.go
- unit_data_edit.go
- unit_delete.go
- unit_diff.go
- unit_get.go
- unit_list.go
- unit_move.go
- unit_mutation_sources.go
- unit_open.go
- unit_path.go
- unit_path_display.go
- unit_setguard.go
- unit_setprotection.go
- unit_tag.go
- unit_tree.go
- unit_update.go
- unitevent.go
- unitevent_get.go
- unitevent_list.go
- unknown_subcommand.go
- upgrade.go
- user.go
- user_get.go
- user_list.go
- variant.go
- variant_approve.go
- variant_argoapp.go
- variant_blame.go
- variant_changeset.go
- variant_conflicts.go
- variant_create.go
- variant_delete.go
- variant_demote.go
- variant_diff.go
- variant_fluxapp.go
- variant_promote.go
- variant_sveltosprofile.go
- variant_sync.go
- variant_upload.go
- version.go
- version_check.go
- view.go
- view_create.go
- view_delete.go
- view_get.go
- view_list.go
- view_update.go
- web.go
- write_conflicts.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package k8sdescribe renders "kubectl describe"-style summaries of Kubernetes resources stored in ConfigHub.
|
Package k8sdescribe renders "kubectl describe"-style summaries of Kubernetes resources stored in ConfigHub. |