package msg // docs links messages to the docs page that says more: message ID to // "page#anchor", a page in docs/content/docs (a folder's _index.md for a // section) and a heading on it. devvm // prints the page's address on the line after the message's text. // TestDocLinks checks every entry. var docs = map[string]string{ //nolint:gosec // message IDs and pages, not credentials "backend_lacks": "backends#when-a-backend-lacks-something", "backend_unreviewed": "backends#when-a-backend-lacks-something", "backend_unreviewed_used": "contributing/testing#unreviewed-emulations", "backend_unknown_vm": "backends#a-vms-backend", "ports_forward_failed": "using/ports-size#ports", "net_tier_backend": "backends#when-a-backend-lacks-something", "disk_low": "using/troubleshooting#not-enough-free-space", "disk_low_warning": "using/ports-size#free-space", "disk_free_unknown": "using/troubleshooting#not-enough-free-space", "program_missing": "backends/lima#requirements", "program_broken": "backends/lima#requirements", "program_old": "backends/lima#requirements", "lima_host_unsupported": "backends/lima#requirements", "program_missing_fix": "backends/lima#requirements", "program_broken_fix": "backends/lima#requirements", "program_old_fix": "backends/lima#requirements", "upgrade_no_latest": "using/upgrading#upgrading", "upgrade_latest_older": "using/upgrading#an-older-release", "upgrade_brew_version": "using/upgrading#an-older-release", "upgrade_prerelease_ahead": "using/upgrading#trying-a-prerelease", "upgrade_checkout_build": "using/upgrading#how-devvm-upgrade-upgrades", "upgrade_go_install": "using/upgrading#how-devvm-upgrade-upgrades", "upgrade_other_install": "using/upgrading#how-devvm-upgrade-upgrades", "upgrade_no_key": "using/upgrading#how-devvm-upgrade-upgrades", "upgrade_download_failed": "using/upgrading#upgrading", "upgrade_bad_signature": "using/upgrading#what-devvm-upgrade-checks", "upgrade_no_archive": "using/upgrading#what-devvm-upgrade-checks", "upgrade_bad_checksum": "using/upgrading#what-devvm-upgrade-checks", "upgrade_bad_archive": "using/upgrading#what-devvm-upgrade-checks", "upgrade_new_failed": "using/upgrading#what-devvm-upgrade-checks", "upgrade_failed": "using/upgrading#what-devvm-upgrade-checks", "upgrade_rollback_failed": "using/upgrading#how-devvm-upgrade-upgrades", "upgrade_brew_failed": "using/upgrading#how-devvm-upgrade-upgrades", "lima_arch_unsupported": "backends/lima#requirements", "no_kvm": "backends/lima#requirements", "kvm_access": "backends/lima#requirements", "lima_global_config": "backends/lima#devvms-lima-home", "vm_has_networks": "backends/lima#devvms-lima-home", "lima_home_too_long": "backends/lima#limits", "mount_comma": "backends/lima#limits", "disk_shrink": "backends/lima#limits", "image_in_use": "using/images#deleting-images", "image_building": "using/images#deleting-images", "qemu_refused": "internals/lima#confinement", "start_no_ssh": "using/troubleshooting#a-vm-wont-boot", "lima_log_unredacted": "using/troubleshooting#a-command-fails", "no_ubuntu_image": "using/troubleshooting#base-cant-build-on-lima", "no_ubuntu_release": "using/troubleshooting#base-cant-build-on-lima", "origin_no_boot": "using/troubleshooting#base-cant-build-on-lima", "ubuntu_unreachable": "using/troubleshooting#base-cant-build-on-lima", "ubuntu_bad_signature": "using/troubleshooting#a-download-doesnt-check-out", "ubuntu_newest_older": "using/troubleshooting#a-download-doesnt-check-out", "unknown_layer": "using/images#layers", "default_layer_gone": "using/settings#layers-for-new-vms", "default_layer_lacks": "using/settings#layers-for-new-vms", "layer_name_invalid": "using/customizing#your-own-layers", "layer_name_reserved": "using/customizing#your-own-layers", "layer_created": "using/customizing#your-own-layers", "base_features": "using/customizing#choosing-features", "base_features_none": "using/customizing#choosing-features", "unknown_feature": "using/customizing#choosing-features", "script_failed": "using/troubleshooting#a-build-fails", "build_sources_unreachable": "using/troubleshooting#no-package-source-answers", "packages_lists_missing": "using/troubleshooting#a-build-fails", "packages_missing": "using/troubleshooting#base-cant-build-on-lima", "packages_not_newest": "using/troubleshooting#a-build-fails", "packages_refused": "using/troubleshooting#a-build-fails", "packages_stale": "using/troubleshooting#base-gets-old-package-lists", "packages_stale_mirror": "using/settings#an-ubuntu-mirror", "rebuild_replaces": "using/images#rebuilding", "layer_exists": "using/customizing#your-own-layers", "images_stale_note": "using/images#cleaning-up", "images_unused": "using/images#cleaning-up", "folders_not_private": "using/space#devvms-data-folder", "layout_newer": "using/troubleshooting#a-newer-devvm-changed-devvms-folders", "layout_unchecked": "using/troubleshooting#a-file-devvm-cant-read", "vm_state_unreadable": "using/troubleshooting#a-file-devvm-cant-read", "vms_stray": "using/space#what-devvm-doctor-finds-in-vms", "vm_folder_stateless": "using/space#what-devvm-doctor-finds-in-vms", "vms_unreadable": "using/space#what-devvm-doctor-finds-in-vms", "retention_busy": "using/settings#retention", "retention_unreadable": "using/settings#retention", "retention_failed": "using/settings#retention", "retention_bad": "using/settings#retention", "set_in_config": "using/settings#configtoml", "gc_backend_skipped": "using/images#cleaning-up", "gc_orphans_unknown": "using/space#leftovers-of-a-vm-deleted-outside-devvm", "gc_orphan_elsewhere": "using/space#leftovers-of-a-vm-deleted-outside-devvm", "gc_orphan_recent": "using/space#leftovers-of-a-vm-deleted-outside-devvm", "gc_older_than_needs_history": "using/images#cleaning-up", "bad_duration": "using/command-line#flags-and-values", "gc_names_need_tools": "using/images#cleaning-up", "gc_tools_making": "using/images#cleaning-up", "unknown_tool": "using/toolchains#adding-and-removing-tools", "images_total": "using/space#devvm-space", "space_backend_unknown": "using/space#devvm-space", "space_stray": "using/space#vms-devvm-has-no-state-for", "space_caches_note": "using/space#limas-caches", "tool_not_locked": "using/images#shared-tools", "vm_outdated": "using/images#outdated-vms", "bad_path": "backends/lima#limits", "vm_name_no_room": "backends/lima#limits", "vm_other_folder": "using/vms#a-folder-made-again", "vm_other_folder_rm": "using/vms#a-folder-made-again", "vm_other_folder_adopt": "using/vms#a-folder-made-again", "rm_unknown_vm": "using/vms#a-vm-whose-folder-is-gone", "rm_vm_folder_there": "using/vms#a-vm-whose-folder-is-gone", "rm_vm_lost": "using/space#leftovers-of-a-vm-deleted-outside-devvm", "vm_moved_here": "using/vms#a-moved-or-renamed-folder", "vms_moved_here": "using/vms#a-moved-or-renamed-folder", "adopt_move_refused": "using/vms#a-moved-or-renamed-folder", "move_folder_changed": "using/vms#a-moved-or-renamed-folder", "project_folder_changed": "using/vms#a-nested-project-replaced", "project_folder_changed_stopped": "using/vms#a-nested-project-replaced", "project_in_vm_folder": "using/vms#a-nested-project-replaced", "adopt_folder_there": "using/vms#a-moved-or-renamed-folder", "adopt_has_vm": "using/vms#a-moved-or-renamed-folder", "adopt_clone": "using/vms#a-moved-or-renamed-folder", "rm_gone_stopped": "using/vms#a-vm-whose-folder-is-gone", "rm_gone_clone": "using/vms#a-vm-whose-folder-is-gone", "space_folder_gone": "using/vms#a-vm-whose-folder-is-gone", "space_folder_not_connected": "using/vms#a-folder-on-a-disk-that-isnt-connected", "rm_vm_not_connected": "using/vms#a-folder-on-a-disk-that-isnt-connected", "vm_unfinished": "using/troubleshooting#a-vm-whose-creation-didnt-finish", "create_running": "using/troubleshooting#a-vm-whose-creation-didnt-finish", "no_parent_vm": "using/vms#a-subfolder", "using_parent_vm": "using/vms#a-subfolder", "rm_parent_vm": "using/vms#a-subfolder", "widen_parent_vm_refused": "using/vms#a-subfolder", "tools_joined": "using/toolchains#adding-and-removing-tools", "next_start": "using/vms#restarting-and-stopping", "history_not_exported": "using/coding-agents#history", "history_too_large": "using/coding-agents#history", "history_not_imported": "using/coding-agents#importing-history", "history_import_unsafe": "using/coding-agents#importing-history", "history_import_less_strict": "using/coding-agents#importing-history", "history_import_tier_unknown": "using/coding-agents#importing-history", "history_no_export": "using/coding-agents#importing-history", "history_import_later": "using/coding-agents#importing-history", "git_replaced": "safety/git-protection#not-covered", "git_appeared": "safety/git-protection#when-devvm-reports-git", "git_embedded_new": "safety/git-protection#strict", "git_hooks_unlocked": "safety/git-protection#when-devvm-reports-git", "unsafe_folder": "using/settings#project-folders-devvm-refuses", "unsafe_folder_inside": "using/settings#project-folders-devvm-refuses", "unsafe_folder_used": "using/settings#project-folders-devvm-refuses", "cpus_not_number": "using/ports-size#size-and-ports", "size_not_gib": "using/ports-size#size-and-ports", "too_many_cpus": "using/ports-size#size-and-ports", "too_much_memory": "using/ports-size#size-and-ports", "port_invalid": "using/ports-size#size-and-ports", "devvm_other_first": "using/upgrading#one-devvm", "host_memory_low": "getting-started/install#requirements", "host_cpus_few": "getting-started/install#requirements", "base_fitted": "using/ports-size#size-and-ports", "ports_list_needed": "using/ports-size#ports", "ports_rm_all": "using/ports-size#ports", "ports_taken": "using/troubleshooting#a-listed-port-isnt-forwarded", "ca_not_certificate": "using/settings#a-companys-ca", "ca_not_ca": "using/settings#a-companys-ca", "ca_invalid": "using/settings#a-companys-ca", "ca_link": "using/settings#a-companys-ca", "ca_folder_link": "using/settings#a-companys-ca", "ca_unreadable": "using/settings#a-companys-ca", "ca_folder_unreadable": "using/settings#a-companys-ca", "doctor_proxy_ca": "using/troubleshooting#tls-errors-behind-a-company-proxy", "net_direct_route": "safety/network#when-it-isnt-enforced", "net_unenforced_stop": "using/troubleshooting#a-vm-shows-as-unenforced", "net_unenforced": "using/troubleshooting#a-vm-shows-as-unenforced", "net_open_log": "safety/network#logs", "net_open_policy": "safety/network#network-tiers", "net_allows_unused": "safety/network#network-tiers", "net_proxy_unreachable": "using/troubleshooting#the-proxy-doesnt-start", "json_shows_only": "using/command-line#output-for-scripts", "not_a_rule": "safety/network#rules", "proxy_start_failed": "using/troubleshooting#the-proxy-doesnt-start", "proxy_port_taken": "using/troubleshooting#the-proxy-doesnt-start", "proxy_stop_failed": "using/troubleshooting#the-proxy-doesnt-start", "upstream_proxy_scheme": "safety/network#behind-a-company-proxy", "upstream_proxy_invalid": "safety/network#behind-a-company-proxy", "ubuntu_mirror_invalid": "using/settings#an-ubuntu-mirror", "proxy_password_in_config": "safety/network#behind-a-company-proxy", "proxy_password_missing": "safety/network#behind-a-company-proxy", "secret_host_only": "safety/network#behind-a-company-proxy", "upstream_proxy_gone": "using/troubleshooting#behind-a-company-proxy", "net_proxy_down_stopped": "using/troubleshooting#the-proxy-doesnt-start", "no_secret": "safety/network#saving-and-binding-secrets", "codex_login_kept": "using/coding-agents#codex-and-opencode-logins", "opencode_login_kept": "using/coding-agents#codex-and-opencode-logins", "opencode_login_withheld": "using/coding-agents#codex-and-opencode-logins", "codex_no_key": "using/coding-agents#codex-and-opencode-logins", "codex_no_chatgpt": "using/coding-agents#codex-and-opencode-logins", "codex_refresh_failed": "using/coding-agents#codex-and-opencode-logins", "opencode_refresh_failed": "using/coding-agents#codex-and-opencode-logins", "login_read_failed": "using/coding-agents#codex-and-opencode-logins", "setid_files": "using/troubleshooting#devvm-names-set-id-files", "setid_root_files": "using/troubleshooting#devvm-names-set-id-files", "home_not_absolute": "using/troubleshooting#home-isnt-an-absolute-path", "net_unenforced_restart": "using/troubleshooting#a-vm-shows-as-unenforced", "adopt_failed": "using/vms#a-folder-made-again", "clone_needs_git": "using/clone#requirements", "uncommitted_not_copied": "using/clone#whats-copied", "unfetched_commits": "using/clone#deleting-the-vm", "branch_names_invalid": "using/clone#deleting-the-vm", "git_protect_clone": "safety/git-protection#turning-it-on-or-off", "git_protect_failed": "safety/git-protection#turning-it-on-or-off", "devcontainer_flag_wins": "using/devcontainer#when-its-read", "devcontainer_ignored": "using/devcontainer#properties", "devcontainer_unknown": "using/devcontainer#properties", "devcontainer_initialize": "using/devcontainer#properties", "devcontainer_feature_options": "using/devcontainer#properties", "devcontainer_ports_ignored": "using/devcontainer#properties", "git_protect_needs_macos_new": "safety/git-protection#linux-hosts", "git_protect_on_needs_macos": "safety/git-protection#linux-hosts", "git_protect_next_stop": "safety/git-protection#turning-it-on-or-off", "git_unlocked": "safety/git-protection#turning-it-on-or-off", "git_locked_strict": "safety/git-protection#strict", "git_config_failed": "safety/git-protection#strict", "git_commondir": "safety/git-protection#not-covered", "git_worktree_stray": "safety/git-protection#not-covered", "git_not_locked": "safety/git-protection#when-devvm-reports-git", "git_lock_raced": "safety/git-protection#when-devvm-reports-git", "git_hooks_path": "safety/git-protection#not-covered", "git_include_inside": "safety/git-protection#not-covered", "git_hook_link_inside": "safety/git-protection#not-covered", "git_gitdir_outside": "safety/git-protection#not-covered", "ssh_remote_hint": "using/ssh#agent-forwarding", "agent_on_risk": "using/ssh#agent-forwarding", "agent_devvm_risk": "using/ssh#devvms-own-agent", "agent_no_keys": "using/ssh#devvms-own-agent", "agent_key_changed": "using/ssh#devvms-own-agent", "agent_key_unpinned": "using/ssh#devvms-own-agent", "agent_key_no_fingerprint": "using/ssh#devvms-own-agent", "agent_key_mounted": "using/ssh#devvms-own-agent", "agent_confirm_needs_askpass": "using/ssh#devvms-own-agent", "ssh_include_yourself": "using/ssh#ssh-access-by-name", "no_code_command": "using/ssh#devvm-host-and-devvm-code", "desktop_no_layer": "using/desktop#adding-the-desktop", "desktop_start_failed": "using/desktop#when-the-desktop-doesnt-open", "desktop_open_failed": "using/desktop#when-the-desktop-doesnt-open", "clone_not_top": "using/clone#requirements", "clone_no_commits": "using/clone#requirements", "clone_detached": "using/clone#requirements", "clone_needs_new_vm": "using/clone#switching-a-vm-that-exists", "clone_show_failed": "using/clone#switching-a-vm-that-exists", "clone_git_elsewhere": "using/clone#requirements", "clone_alternates": "using/clone#requirements", "remotes_taken": "using/clone#the-remote", "fetch_until": "using/clone#the-remote", "no_terminal_fetch": "using/clone#deleting-the-vm", "saved_names_taken": "using/clone#deleting-the-vm", "remote_kept": "using/clone#deleting-the-vm", "no_terminal_delete": "using/clone#deleting-the-vm", "clone_worktrees_unchecked": "using/clone#deleting-the-vm", "tools_need_resolve": "using/images#shared-tools", "mise_checksum": "using/troubleshooting#a-download-doesnt-check-out", "tool_stepped_back": "using/troubleshooting#a-new-tool-release-isnt-there-yet", "tool_no_download": "using/troubleshooting#a-new-tool-release-isnt-there-yet", "tools_check_failed": "using/images#shared-tools", "newer_tools": "using/toolchains#adding-and-removing-tools", "tool_unbuilt": "using/troubleshooting#a-new-tool-release-isnt-there-yet", "tool_needs_glibc": "using/from#shared-tools-and-glibc", "tool_bad_output": "internals/images#building-tools", "tools_need_own_base": "using/from#shared-tools-and-glibc", "tools_wrong_base": "internals/images#building-tools", "custom_layer_remove": "using/images#taking-layers-out-of-a-vm", "agent_dir_comma": "using/coding-agents#mounts", "agent_dirs_added": "using/coding-agents#mounts", "agent_dirs_removed": "using/coding-agents#mounts", "agent_import_none": "using/coding-agents#importing-from-this-machine", "agent_import_link_left_out": "using/coding-agents#importing-from-this-machine", "agent_import_opencode_skipped": "using/coding-agents#importing-from-this-machine", "agent_import_opencode_failed": "using/coding-agents#importing-from-this-machine", "agent_login_read_failed": "using/coding-agents#importing-from-this-machine", "agent_import_failed": "using/coding-agents#importing-from-this-machine", "agent_save_no_agent": "using/coding-agents#saving-a-vms-settings", "agent_save_none": "using/coding-agents#saving-a-vms-settings", "agent_save_refused": "using/coding-agents#saving-a-vms-settings", "agent_save_unsafe": "using/coding-agents#saving-a-vms-settings", "agent_save_too_much": "using/coding-agents#saving-a-vms-settings", "agent_save_link_left_out": "using/coding-agents#saving-a-vms-settings", "agent_save_kind_left_out": "using/coding-agents#saving-a-vms-settings", "agent_save_unparsed": "using/coding-agents#saving-a-vms-settings", "agent_save_placeholder": "using/coding-agents#saving-a-vms-settings", "agent_save_not_read": "using/coding-agents#saving-a-vms-settings", "agent_save_withheld": "using/coding-agents#saving-a-vms-settings", "agent_save_failed": "using/coding-agents#saving-a-vms-settings", "agent_login_no_agent": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_port_taken": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_exited": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_not_saved": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_key_copy_failed": "using/coding-agents#logging-in-with-devvm-agent-login", "opencode_import_failed": "using/coding-agents#logging-in-with-devvm-agent-login", "opencode_import_too_much": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_failed": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_provider_needed": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_provider_alone": "using/coding-agents#logging-in-with-devvm-agent-login", "agent_login_stdin_alone": "using/coding-agents#logging-in-with-devvm-agent-login", "no_claude_token": "using/coding-agents#claude-code-login", "claude_token_invalid": "using/coding-agents#claude-code-login", "claude_refresh_failed": "using/coding-agents#claude-code-login", "claude_no_login": "using/coding-agents#claude-code-login", "claude_env_token_wins": "using/coding-agents#claude-code-login", "agent_login_claude_flag": "using/coding-agents#claude-code-login", "agent_login_setup_token_alone": "using/coding-agents#claude-code-login", "no_github_token": "safety/network#saving-and-binding-secrets", "not_setup_token": "using/coding-agents#claude-code-login", "keychain_save_failed": "safety/network#saving-and-binding-secrets", "login_copy_failed": "using/coding-agents#copies", "config_redacted": "using/coding-agents#copies", "config_not_copied": "using/coding-agents#copies", "bad_from": "using/from#tags-and-digests", "from_unreachable": "using/from#tags-and-digests", "from_cached_unreachable": "using/from#tags-and-digests", "from_not_found": "using/from#images-only-docker-has", "from_cached_not_found": "using/from#images-only-docker-has", "docker_only": "using/from#images-only-docker-has", "docker_image_changed": "using/from#images-only-docker-has", "convert_failed": "using/from#supported-images", "convert_bad_output": "using/from#supported-images", "devcontainer_invalid": "using/devcontainer#when-its-read", "devcontainer_unreadable": "using/devcontainer#when-its-read", "devcontainer_changed": "using/devcontainer#updating-a-vm-from-the-file", "devcontainer_new": "using/devcontainer#updating-a-vm-from-the-file", "devcontainer_bad_value": "using/devcontainer#properties", "devcontainer_build": "using/devcontainer#properties", "devcontainer_feature": "using/devcontainer#properties", "devcontainer_docker_outside": "using/devcontainer#properties", "devcontainer_env_name": "using/devcontainer#properties", "devcontainer_image_not_public": "using/devcontainer#properties", "devcontainer_local_env": "using/devcontainer#variables", "devcontainer_variable": "using/devcontainer#variables", "devcontainer_command_failed": "using/devcontainer#commands", "no_ssh_agent": "using/ssh#agent-forwarding", "ssh_agent_empty": "using/ssh#agent-forwarding", "load_key_with": "using/ssh#agent-forwarding", "no_vm_ssh_agent": "using/ssh#agent-forwarding", "agent_key_not_found": "using/ssh#devvms-own-agent", "agent_key_not_recorded": "using/ssh#devvms-own-agent", "agent_unload_failed": "using/ssh#devvms-own-agent", "agent_load_failed": "using/ssh#devvms-own-agent", "agent_start_failed": "using/ssh#devvms-own-agent", "no_feature": "using/customizing#choosing-features", "flag_blank": "using/command-line#flags-and-values", "no_input": "using/command-line#questions-devvm-asks", "arg_blank": "using/command-line#flags-and-values", "no_image_named": "using/images#listing-images", "no_image_named_from": "using/images#listing-images", "not_an_image": "using/images#deleting-images", "no_vm": "getting-started/first-vm#making-the-vm", "no_vm_size": "using/ports-size#size", "no_vm_ports": "using/ports-size#ports", "no_vm_git_protect": "safety/git-protection#turning-it-on-or-off", "no_vm_policy": "safety/network#changing-rules", "no_token": "safety/network#saving-and-binding-secrets", "bad_secret_service": "using/settings#environment", "start_failed": "using/troubleshooting#a-command-fails", "stop_failed": "using/troubleshooting#a-command-fails", "delete_failed": "using/troubleshooting#a-command-fails", "vm_create_failed": "using/troubleshooting#a-command-fails", "sync_failed": "using/troubleshooting#a-command-fails", "link_setup_invalid": "using/troubleshooting#a-command-fails", "tools_unmounted": "using/troubleshooting#a-shared-tool-doesnt-mount", "size_pending": "using/ports-size#size", "size_pending_running": "using/ports-size#size", "new_vm_flags_ignored": "using/images#what-a-new-vm-gets", "new_vm_flags_ignored_run": "using/images#what-a-new-vm-gets", "port_not_listed": "using/ports-size#ports", "link_port_invalid": "using/links#ports", "link_unknown_target": "using/links#adding-a-link", "link_ambiguous_target": "using/links#adding-a-link", "link_self": "using/links#adding-a-link", "link_not_published": "using/links#publishing-a-port", "link_tier_mismatch": "using/links#links-and-network-tiers", "link_name_invalid": "using/links#names", "link_name_host": "using/links#names", "link_name_taken": "using/links#names", "link_target_named": "using/links#names", "link_trust": "using/links#a-link-joins-the-two-vms-trust", "link_not_found": "using/links#removing-a-link", "link_port_taken": "using/links#when-a-target-stops-or-goes", "link_target_stopped": "using/links#when-a-target-stops-or-goes", "link_target_unusable": "using/links#when-a-target-stops-or-goes", "link_target_unenforced": "using/links#links-and-network-tiers", "links_update_failed": "using/links#when-links-change", "unpublished_linked": "using/links#publishing-a-port", "tier_linked_clients": "using/links#links-and-network-tiers", "tier_linked_targets": "using/links#links-and-network-tiers", "port_not_published": "using/links#publishing-a-port", "link_from_group": "using/links#leaving-a-group", "no_vm_group": "using/links#groups", "group_name_invalid": "using/links#joining-a-group", "group_none": "using/links#joining-a-group", "group_other": "using/links#leaving-a-group", "group_named": "using/links#names-in-a-group", "group_trust": "using/links#a-group-joins-the-trust-of-all-its-vms", "group_tier_mismatch": "using/links#groups-and-network-tiers", "group_tier_fixed": "using/links#groups-and-network-tiers", "group_name_taken": "using/links#names-in-a-group", "group_name_host": "using/links#names-in-a-group", "group_link_name_clash": "using/links#names-in-a-group", "group_name_hostname": "using/links#names-in-a-group", "clone_seed_failed": "using/clone#whats-copied", "remote_add_failed": "using/clone#the-remote", "clone_check_failed": "using/clone#deleting-the-vm", "clone_check_not_started": "using/clone#deleting-the-vm", "clone_check_skipped": "using/clone#deleting-the-vm", "fetch_failed": "using/clone#deleting-the-vm", "mise_download_failed": "using/images#shared-tools", "tools_resolve_failed": "using/images#shared-tools", "tools_untrusted": "using/settings#a-companys-ca", "tool_bad_version": "using/toolchains#adding-and-removing-tools", "vm_lacks": "using/toolchains#adding-and-removing-tools", "rule_missing": "safety/network#changing-rules", "policy_not_rule": "safety/network#rules", "policy_broken_deny": "safety/network#rules", "usage_error": "using/troubleshooting#a-command-is-refused-before-it-runs", "arg_missing": "using/troubleshooting#a-command-is-refused-before-it-runs", "args_too_many": "using/troubleshooting#a-command-is-refused-before-it-runs", "args_none": "using/troubleshooting#a-command-is-refused-before-it-runs", "arg_not_choice": "using/troubleshooting#a-command-is-refused-before-it-runs", "no_subcommand": "using/troubleshooting#a-command-is-refused-before-it-runs", "flag_unknown": "using/troubleshooting#a-command-is-refused-before-it-runs", "flag_needs_value": "using/troubleshooting#a-command-is-refused-before-it-runs", "flag_bad_value": "using/troubleshooting#a-command-is-refused-before-it-runs", "flag_bad_switch": "using/troubleshooting#a-command-is-refused-before-it-runs", "flags_exclusive": "using/troubleshooting#a-command-is-refused-before-it-runs", "no_command": "using/command-line#help", "no_command_like": "using/command-line#help", "no_command_part": "using/images#what-a-new-vm-gets", "unknown_part": "using/images#what-a-new-vm-gets", "unknown_part_like": "using/images#what-a-new-vm-gets", "part_none_alone": "using/images#what-a-new-vm-gets", "part_other_flag": "using/images#what-a-new-vm-gets", "tool_not_layer": "using/images#layers", "unknown_layer_like": "using/images#layers", "remake_parent_vm": "using/vms#a-subfolder", "remake_clone": "using/clone#switching-a-vm-that-exists", "export_failed_kept": "using/coding-agents#history", "remake_home_failed": "using/images#what-a-vm-made-again-keeps", "remake_restore_failed": "using/images#a-remake-that-stops-halfway", "remake_undo_failed": "using/images#a-remake-that-stops-halfway", "remake_pending": "using/images#a-remake-that-stops-halfway", "remake_running": "using/images#a-remake-that-stops-halfway", "remake_home_lost": "using/images#a-remake-that-stops-halfway", "rename_failed": "using/troubleshooting#a-command-fails", } // IssuesURL is devvm's issue tracker, which the root's help ends with. const IssuesURL = "https://github.com/devvmhq/devvm/issues" // commandDocs links each command users can run, by its path, to the user // page that covers it, as docs does: "page#anchor". A command's help ends // with the page's address, and its CLI reference page links to it. // TestDocLinks checks every entry. var commandDocs = map[string]string{ "devvm": "getting-started/commands", "devvm restart": "using/vms#restarting-and-stopping", "devvm stop": "using/vms#restarting-and-stopping", "devvm update": "using/images#outdated-vms", "devvm rm": "using/vms#deleting-a-vm", "devvm adopt": "using/vms#a-folder-made-again", "devvm ls": "using/vms#listing-vms", "devvm code": "using/ssh#vs-code", "devvm desktop": "using/desktop", "devvm host": "using/ssh#devvm-host-and-devvm-code", "devvm history": "using/coding-agents#history", "devvm history export": "using/coding-agents#history", "devvm history import": "using/coding-agents#importing-history", "devvm agent": "using/coding-agents#devvms-agent-store", "devvm agent import": "using/coding-agents#importing-from-this-machine", "devvm agent save": "using/coding-agents#saving-a-vms-settings", "devvm agent login": "using/coding-agents#logging-in-with-devvm-agent-login", "devvm tools": "using/toolchains#adding-and-removing-tools", "devvm tools add": "using/toolchains#adding-and-removing-tools", "devvm tools rm": "using/toolchains#adding-and-removing-tools", "devvm tools update": "using/toolchains#adding-and-removing-tools", "devvm size": "using/ports-size#size", "devvm ports": "using/ports-size#ports", "devvm ports add": "using/ports-size#ports", "devvm ports rm": "using/ports-size#ports", "devvm network": "safety/network#choosing-a-tier", "devvm network allow": "safety/network#changing-rules", "devvm network deny": "safety/network#changing-rules", "devvm network rm": "safety/network#changing-rules", "devvm network log": "safety/network#logs", "devvm ssh-agent": "using/ssh#agent-forwarding", "devvm ssh-agent add": "using/ssh#devvms-own-agent", "devvm ssh-agent rm": "using/ssh#devvms-own-agent", "devvm git-protect": "safety/git-protection#turning-it-on-or-off", "devvm clone": "using/clone#switching-a-vm-that-exists", "devvm secret": "safety/network#saving-and-binding-secrets", "devvm secret set": "safety/network#saving-and-binding-secrets", "devvm secret rm": "safety/network#saving-and-binding-secrets", "devvm secret use": "safety/network#saving-and-binding-secrets", "devvm secret unuse": "safety/network#saving-and-binding-secrets", "devvm link": "using/links#listing-links", "devvm link add": "using/links#adding-a-link", "devvm link rm": "using/links#removing-a-link", "devvm link publish": "using/links#publishing-a-port", "devvm link unpublish": "using/links#publishing-a-port", "devvm group": "using/links#groups", "devvm group join": "using/links#joining-a-group", "devvm group leave": "using/links#leaving-a-group", "devvm images": "using/images#listing-images", "devvm images rm": "using/images#deleting-images", "devvm build": "using/images#layers", "devvm rebuild": "using/images#rebuilding", "devvm layer": "using/customizing#your-own-layers", "devvm layer new": "using/customizing#your-own-layers", "devvm layer add": "using/images#adding-layers-to-a-vm", "devvm layer rm": "using/images#taking-layers-out-of-a-vm", "devvm space": "using/space#devvm-space", "devvm gc": "using/images#cleaning-up", "devvm retention": "using/settings#retention", "devvm setup": "using/settings#devvm-setup", "devvm doctor": "getting-started/install#checking-what-devvm-needs", "devvm upgrade": "using/upgrading#upgrading", "devvm completion": "using/command-line#shell-completion", "devvm limactl": "backends/lima#running-limactl", } // CommandDoc returns the "page#anchor" of the docs page for the command // at path (devvm network allow), or "" when it has none. func CommandDoc(path string) string { return commandDocs[path] } // CommandDocURL returns the address of the docs page for the command at // path, or "" when it has none. func CommandDocURL(path string) string { return docURL(commandDocs[path]) }