From db143695c04ed48f3f79f02ca752d9eb5d733378 Mon Sep 17 00:00:00 2001 From: apostasie Date: Mon, 3 Mar 2025 16:49:09 -0800 Subject: [PATCH] Refactor: clean-up cmd filenames Signed-off-by: apostasie --- .../{apparmor_linux.go => command_linux.go} | 0 ...or_linux_test.go => command_linux_test.go} | 0 ...rmor_inspect_linux.go => inspect_linux.go} | 0 .../{apparmor_list_linux.go => list_linux.go} | 0 .../{apparmor_load_linux.go => load_linux.go} | 0 ...parmor_unload_linux.go => unload_linux.go} | 0 .../builder/{builder_build.go => build.go} | 0 ...ayout_test.go => build_oci_layout_test.go} | 0 .../{builder_build_test.go => build_test.go} | 0 cmd/nerdctl/builder/builder_test.go | 27 ------------------- .../builder/{builder.go => command.go} | 0 ...uilder_builder_test.go => command_test.go} | 0 .../completion/{completion.go => command.go} | 0 ...mpletion_freebsd.go => command_freebsd.go} | 0 .../{completion_linux.go => command_linux.go} | 0 .../{completion_test.go => command_test.go} | 0 .../{completion_unix.go => command_unix.go} | 0 ...mpletion_windows.go => command_windows.go} | 0 .../compose/{compose_build.go => build.go} | 0 ...uild_linux_test.go => build_linux_test.go} | 0 .../compose/{compose.go => command.go} | 0 .../{compose_test.go => command_test.go} | 0 .../compose/{compose_config.go => config.go} | 0 ...{compose_config_test.go => config_test.go} | 0 cmd/nerdctl/compose/{compose_cp.go => cp.go} | 0 ...pose_cp_linux_test.go => cp_linux_test.go} | 0 .../compose/{compose_create.go => create.go} | 0 ...ate_linux_test.go => create_linux_test.go} | 0 .../compose/{compose_down.go => down.go} | 0 ..._down_linux_test.go => down_linux_test.go} | 0 .../compose/{compose_exec.go => exec.go} | 0 ..._exec_linux_test.go => exec_linux_test.go} | 0 .../compose/{compose_images.go => images.go} | 0 ...ges_linux_test.go => images_linux_test.go} | 0 .../compose/{compose_kill.go => kill.go} | 0 ..._kill_linux_test.go => kill_linux_test.go} | 0 .../compose/{compose_logs.go => logs.go} | 0 .../compose/{compose_pause.go => pause.go} | 0 ...ause_linux_test.go => pause_linux_test.go} | 0 .../compose/{compose_port.go => port.go} | 0 ..._port_linux_test.go => port_linux_test.go} | 0 cmd/nerdctl/compose/{compose_ps.go => ps.go} | 0 ...pose_ps_linux_test.go => ps_linux_test.go} | 0 .../compose/{compose_pull.go => pull.go} | 0 ..._pull_linux_test.go => pull_linux_test.go} | 0 .../compose/{compose_push.go => push.go} | 0 .../{compose_restart.go => restart.go} | 0 ...rt_linux_test.go => restart_linux_test.go} | 0 cmd/nerdctl/compose/{compose_rm.go => rm.go} | 0 ...pose_rm_linux_test.go => rm_linux_test.go} | 0 .../compose/{compose_run.go => run.go} | 0 ...se_run_linux_test.go => run_linux_test.go} | 0 .../compose/{compose_start.go => start.go} | 0 ...tart_linux_test.go => start_linux_test.go} | 0 .../compose/{compose_stop.go => stop.go} | 0 ..._stop_linux_test.go => stop_linux_test.go} | 0 .../compose/{compose_top.go => top.go} | 0 ...se_top_linux_test.go => top_linux_test.go} | 0 cmd/nerdctl/compose/{compose_up.go => up.go} | 0 ...pose_up_linux_test.go => up_linux_test.go} | 0 .../{compose_up_test.go => up_test.go} | 0 .../{compose_version.go => version.go} | 0 ...ompose_version_test.go => version_test.go} | 0 .../{container_attach.go => attach.go} | 0 ...ach_linux_test.go => attach_linux_test.go} | 0 .../container/{container.go => command.go} | 0 .../{container_test.go => command_test.go} | 0 .../{container_commit.go => commit.go} | 0 ...mit_linux_test.go => commit_linux_test.go} | 0 ...ontainer_commit_test.go => commit_test.go} | 0 ...id_linux_test.go => cp_acid_linux_test.go} | 0 ...{container_cp_freebsd.go => cp_freebsd.go} | 0 .../{container_cp_linux.go => cp_linux.go} | 0 ...iner_cp_linux_test.go => cp_linux_test.go} | 0 ...{container_cp_windows.go => cp_windows.go} | 0 .../{container_create.go => create.go} | 0 ...ate_linux_test.go => create_linux_test.go} | 0 ...ontainer_create_test.go => create_test.go} | 0 .../container/{container_diff.go => diff.go} | 0 .../{container_diff_test.go => diff_test.go} | 0 .../container/{container_exec.go => exec.go} | 0 ..._exec_linux_test.go => exec_linux_test.go} | 0 .../{container_exec_test.go => exec_test.go} | 0 .../{container_inspect.go => inspect.go} | 0 ...ct_linux_test.go => inspect_linux_test.go} | 0 ...indows_test.go => inspect_windows_test.go} | 0 .../container/{container_kill.go => kill.go} | 0 ..._kill_linux_test.go => kill_linux_test.go} | 0 .../container/{container_list.go => list.go} | 0 ..._list_linux_test.go => list_linux_test.go} | 0 .../{container_list_test.go => list_test.go} | 0 ...t_windows_test.go => list_windows_test.go} | 0 .../container/{container_logs.go => logs.go} | 0 .../{container_logs_test.go => logs_test.go} | 0 .../{container_pause.go => pause.go} | 0 .../container/{container_port.go => port.go} | 0 .../{container_prune.go => prune.go} | 0 ...rune_linux_test.go => prune_linux_test.go} | 0 .../{container_remove.go => remove.go} | 0 ...ontainer_remove_test.go => remove_test.go} | 0 ...windows_test.go => remove_windows_test.go} | 0 .../{container_rename.go => rename.go} | 0 ...ame_linux_test.go => rename_linux_test.go} | 0 ...windows_test.go => rename_windows_test.go} | 0 .../{container_restart.go => restart.go} | 0 ...rt_linux_test.go => restart_linux_test.go} | 0 .../container/{container_run.go => run.go} | 0 ...linux_test.go => run_cgroup_linux_test.go} | 0 ...ontainer_run_freebsd.go => run_freebsd.go} | 0 ...iner_run_gpus_test.go => run_gpus_test.go} | 0 .../{container_run_linux.go => run_linux.go} | 0 ...er_run_linux_test.go => run_linux_test.go} | 0 ..._test.go => run_log_driver_syslog_test.go} | 0 ..._linux_test.go => run_mount_linux_test.go} | 0 ...dows_test.go => run_mount_windows_test.go} | 0 ...ontainer_run_network.go => run_network.go} | 0 ..._base_test.go => run_network_base_test.go} | 0 ...inux_test.go => run_network_linux_test.go} | 0 ...ws_test.go => run_network_windows_test.go} | 0 ...inux_test.go => run_restart_linux_test.go} | 0 ...inux_test.go => run_runtime_linux_test.go} | 0 ...nux_test.go => run_security_linux_test.go} | 0 ...i_linux_test.go => run_soci_linux_test.go} | 0 ...linux_test.go => run_stargz_linux_test.go} | 0 ...inux_test.go => run_systemd_linux_test.go} | 0 .../{container_run_test.go => run_test.go} | 0 ...r_linux_test.go => run_user_linux_test.go} | 0 ...ndows_test.go => run_user_windows_test.go} | 0 ...linux_test.go => run_verify_linux_test.go} | 0 ...ontainer_run_windows.go => run_windows.go} | 0 ...un_windows_test.go => run_windows_test.go} | 0 .../{container_start.go => start.go} | 0 ...tart_linux_test.go => start_linux_test.go} | 0 ...{container_start_test.go => start_test.go} | 0 .../{container_stats.go => stats.go} | 0 ...{container_stats_test.go => stats_test.go} | 0 .../container/{container_stop.go => stop.go} | 0 ..._stop_linux_test.go => stop_linux_test.go} | 0 .../container/{container_top.go => top.go} | 0 .../{container_top_test.go => top_test.go} | 0 .../{container_unpause.go => unpause.go} | 0 .../{container_update.go => update.go} | 0 ...ate_linux_test.go => update_linux_test.go} | 0 .../container/{container_wait.go => wait.go} | 0 .../{container_wait_test.go => wait_test.go} | 0 cmd/nerdctl/image/{image.go => command.go} | 0 .../image/{image_test.go => command_test.go} | 0 .../image/{image_convert.go => convert.go} | 0 ...rt_linux_test.go => convert_linux_test.go} | 0 .../{image_cryptutil.go => cryptutil.go} | 0 .../image/{image_decrypt.go => decrypt.go} | 0 .../image/{image_encrypt.go => encrypt.go} | 0 ...pt_linux_test.go => encrypt_linux_test.go} | 0 .../image/{image_history.go => history.go} | 0 ...{image_history_test.go => history_test.go} | 0 .../image/{image_inspect.go => inspect.go} | 0 ...{image_inspect_test.go => inspect_test.go} | 0 cmd/nerdctl/image/{image_list.go => list.go} | 0 .../{image_list_test.go => list_test.go} | 0 cmd/nerdctl/image/{image_load.go => load.go} | 0 .../{image_load_test.go => load_test.go} | 0 .../image/{image_prune.go => prune.go} | 0 .../{image_prune_test.go => prune_test.go} | 0 cmd/nerdctl/image/{image_pull.go => pull.go} | 0 ..._pull_linux_test.go => pull_linux_test.go} | 0 cmd/nerdctl/image/{image_push.go => push.go} | 0 ..._push_linux_test.go => push_linux_test.go} | 0 .../image/{image_remove.go => remove.go} | 0 .../{image_remove_test.go => remove_test.go} | 0 cmd/nerdctl/image/{image_save.go => save.go} | 0 .../{image_save_test.go => save_test.go} | 0 cmd/nerdctl/image/{image_tag.go => tag.go} | 0 .../inspect/{inspect.go => command.go} | 0 .../{inspect_test.go => command_test.go} | 0 .../internal/{internal.go => command.go} | 0 .../{internal_oci_hook.go => oci_hook.go} | 0 cmd/nerdctl/ipfs/{ipfs.go => command.go} | 0 .../ipfs/{ipfs_test.go => command_test.go} | 0 ...se_linux_test.go => compose_linux_test.go} | 0 ..._kubo_linux_test.go => kubo_linux_test.go} | 0 .../ipfs/{ipfs_registry.go => registry.go} | 0 ...y_linux_test.go => registry_linux_test.go} | 0 ...fs_registry_serve.go => registry_serve.go} | 0 ...ple_linux_test.go => simple_linux_test.go} | 0 .../{issues_linux_test.go => linux_test.go} | 0 cmd/nerdctl/login/{login.go => command.go} | 0 ...in_linux_test.go => command_linux_test.go} | 0 .../login/{login_test.go => command_test.go} | 0 .../namespace/{namespace.go => command.go} | 0 .../{namespace_test.go => command_test.go} | 0 .../{namespace_create.go => create.go} | 0 .../{namespace_inspect.go => inspect.go} | 0 .../{namespace_remove.go => remove.go} | 0 .../{namespace_update.go => update.go} | 0 .../network/{network.go => command.go} | 0 .../{network_test.go => command_test.go} | 0 .../network/{network_create.go => create.go} | 0 ...ate_linux_test.go => create_linux_test.go} | 0 ...{network_create_unix.go => create_unix.go} | 0 ...rk_create_windows.go => create_windows.go} | 0 .../{network_inspect.go => inspect.go} | 0 ...etwork_inspect_test.go => inspect_test.go} | 0 .../network/{network_list.go => list.go} | 0 ..._list_linux_test.go => list_linux_test.go} | 0 .../network/{network_prune.go => prune.go} | 0 ...rune_linux_test.go => prune_linux_test.go} | 0 .../network/{network_remove.go => remove.go} | 0 ...ove_linux_test.go => remove_linux_test.go} | 0 cmd/nerdctl/system/{system.go => command.go} | 0 .../{system_test.go => command_test.go} | 0 .../system/{system_events.go => events.go} | 0 ...nts_linux_test.go => events_linux_test.go} | 0 .../system/{system_info.go => info.go} | 0 .../{system_info_test.go => info_test.go} | 0 .../system/{system_prune.go => prune.go} | 0 ...rune_linux_test.go => prune_linux_test.go} | 0 cmd/nerdctl/volume/{volume.go => command.go} | 0 .../{volume_test.go => command_test.go} | 0 .../volume/{volume_create.go => create.go} | 0 .../{volume_create_test.go => create_test.go} | 0 .../volume/{volume_inspect.go => inspect.go} | 0 ...volume_inspect_test.go => inspect_test.go} | 0 .../volume/{volume_list.go => list.go} | 0 .../{volume_list_test.go => list_test.go} | 0 ...me_namespace_test.go => namespace_test.go} | 0 .../volume/{volume_prune.go => prune.go} | 0 ...rune_linux_test.go => prune_linux_test.go} | 0 .../volume/{volume_remove.go => remove.go} | 0 ...ove_linux_test.go => remove_linux_test.go} | 0 229 files changed, 27 deletions(-) rename cmd/nerdctl/apparmor/{apparmor_linux.go => command_linux.go} (100%) rename cmd/nerdctl/apparmor/{apparmor_linux_test.go => command_linux_test.go} (100%) rename cmd/nerdctl/apparmor/{apparmor_inspect_linux.go => inspect_linux.go} (100%) rename cmd/nerdctl/apparmor/{apparmor_list_linux.go => list_linux.go} (100%) rename cmd/nerdctl/apparmor/{apparmor_load_linux.go => load_linux.go} (100%) rename cmd/nerdctl/apparmor/{apparmor_unload_linux.go => unload_linux.go} (100%) rename cmd/nerdctl/builder/{builder_build.go => build.go} (100%) rename cmd/nerdctl/builder/{builder_build_oci_layout_test.go => build_oci_layout_test.go} (100%) rename cmd/nerdctl/builder/{builder_build_test.go => build_test.go} (100%) delete mode 100644 cmd/nerdctl/builder/builder_test.go rename cmd/nerdctl/builder/{builder.go => command.go} (100%) rename cmd/nerdctl/builder/{builder_builder_test.go => command_test.go} (100%) rename cmd/nerdctl/completion/{completion.go => command.go} (100%) rename cmd/nerdctl/completion/{completion_freebsd.go => command_freebsd.go} (100%) rename cmd/nerdctl/completion/{completion_linux.go => command_linux.go} (100%) rename cmd/nerdctl/completion/{completion_test.go => command_test.go} (100%) rename cmd/nerdctl/completion/{completion_unix.go => command_unix.go} (100%) rename cmd/nerdctl/completion/{completion_windows.go => command_windows.go} (100%) rename cmd/nerdctl/compose/{compose_build.go => build.go} (100%) rename cmd/nerdctl/compose/{compose_build_linux_test.go => build_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose.go => command.go} (100%) rename cmd/nerdctl/compose/{compose_test.go => command_test.go} (100%) rename cmd/nerdctl/compose/{compose_config.go => config.go} (100%) rename cmd/nerdctl/compose/{compose_config_test.go => config_test.go} (100%) rename cmd/nerdctl/compose/{compose_cp.go => cp.go} (100%) rename cmd/nerdctl/compose/{compose_cp_linux_test.go => cp_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_create.go => create.go} (100%) rename cmd/nerdctl/compose/{compose_create_linux_test.go => create_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_down.go => down.go} (100%) rename cmd/nerdctl/compose/{compose_down_linux_test.go => down_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_exec.go => exec.go} (100%) rename cmd/nerdctl/compose/{compose_exec_linux_test.go => exec_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_images.go => images.go} (100%) rename cmd/nerdctl/compose/{compose_images_linux_test.go => images_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_kill.go => kill.go} (100%) rename cmd/nerdctl/compose/{compose_kill_linux_test.go => kill_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_logs.go => logs.go} (100%) rename cmd/nerdctl/compose/{compose_pause.go => pause.go} (100%) rename cmd/nerdctl/compose/{compose_pause_linux_test.go => pause_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_port.go => port.go} (100%) rename cmd/nerdctl/compose/{compose_port_linux_test.go => port_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_ps.go => ps.go} (100%) rename cmd/nerdctl/compose/{compose_ps_linux_test.go => ps_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_pull.go => pull.go} (100%) rename cmd/nerdctl/compose/{compose_pull_linux_test.go => pull_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_push.go => push.go} (100%) rename cmd/nerdctl/compose/{compose_restart.go => restart.go} (100%) rename cmd/nerdctl/compose/{compose_restart_linux_test.go => restart_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_rm.go => rm.go} (100%) rename cmd/nerdctl/compose/{compose_rm_linux_test.go => rm_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_run.go => run.go} (100%) rename cmd/nerdctl/compose/{compose_run_linux_test.go => run_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_start.go => start.go} (100%) rename cmd/nerdctl/compose/{compose_start_linux_test.go => start_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_stop.go => stop.go} (100%) rename cmd/nerdctl/compose/{compose_stop_linux_test.go => stop_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_top.go => top.go} (100%) rename cmd/nerdctl/compose/{compose_top_linux_test.go => top_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_up.go => up.go} (100%) rename cmd/nerdctl/compose/{compose_up_linux_test.go => up_linux_test.go} (100%) rename cmd/nerdctl/compose/{compose_up_test.go => up_test.go} (100%) rename cmd/nerdctl/compose/{compose_version.go => version.go} (100%) rename cmd/nerdctl/compose/{compose_version_test.go => version_test.go} (100%) rename cmd/nerdctl/container/{container_attach.go => attach.go} (100%) rename cmd/nerdctl/container/{container_attach_linux_test.go => attach_linux_test.go} (100%) rename cmd/nerdctl/container/{container.go => command.go} (100%) rename cmd/nerdctl/container/{container_test.go => command_test.go} (100%) rename cmd/nerdctl/container/{container_commit.go => commit.go} (100%) rename cmd/nerdctl/container/{container_commit_linux_test.go => commit_linux_test.go} (100%) rename cmd/nerdctl/container/{container_commit_test.go => commit_test.go} (100%) rename cmd/nerdctl/container/{container_cp_acid_linux_test.go => cp_acid_linux_test.go} (100%) rename cmd/nerdctl/container/{container_cp_freebsd.go => cp_freebsd.go} (100%) rename cmd/nerdctl/container/{container_cp_linux.go => cp_linux.go} (100%) rename cmd/nerdctl/container/{container_cp_linux_test.go => cp_linux_test.go} (100%) rename cmd/nerdctl/container/{container_cp_windows.go => cp_windows.go} (100%) rename cmd/nerdctl/container/{container_create.go => create.go} (100%) rename cmd/nerdctl/container/{container_create_linux_test.go => create_linux_test.go} (100%) rename cmd/nerdctl/container/{container_create_test.go => create_test.go} (100%) rename cmd/nerdctl/container/{container_diff.go => diff.go} (100%) rename cmd/nerdctl/container/{container_diff_test.go => diff_test.go} (100%) rename cmd/nerdctl/container/{container_exec.go => exec.go} (100%) rename cmd/nerdctl/container/{container_exec_linux_test.go => exec_linux_test.go} (100%) rename cmd/nerdctl/container/{container_exec_test.go => exec_test.go} (100%) rename cmd/nerdctl/container/{container_inspect.go => inspect.go} (100%) rename cmd/nerdctl/container/{container_inspect_linux_test.go => inspect_linux_test.go} (100%) rename cmd/nerdctl/container/{container_inspect_windows_test.go => inspect_windows_test.go} (100%) rename cmd/nerdctl/container/{container_kill.go => kill.go} (100%) rename cmd/nerdctl/container/{container_kill_linux_test.go => kill_linux_test.go} (100%) rename cmd/nerdctl/container/{container_list.go => list.go} (100%) rename cmd/nerdctl/container/{container_list_linux_test.go => list_linux_test.go} (100%) rename cmd/nerdctl/container/{container_list_test.go => list_test.go} (100%) rename cmd/nerdctl/container/{container_list_windows_test.go => list_windows_test.go} (100%) rename cmd/nerdctl/container/{container_logs.go => logs.go} (100%) rename cmd/nerdctl/container/{container_logs_test.go => logs_test.go} (100%) rename cmd/nerdctl/container/{container_pause.go => pause.go} (100%) rename cmd/nerdctl/container/{container_port.go => port.go} (100%) rename cmd/nerdctl/container/{container_prune.go => prune.go} (100%) rename cmd/nerdctl/container/{container_prune_linux_test.go => prune_linux_test.go} (100%) rename cmd/nerdctl/container/{container_remove.go => remove.go} (100%) rename cmd/nerdctl/container/{container_remove_test.go => remove_test.go} (100%) rename cmd/nerdctl/container/{container_remove_windows_test.go => remove_windows_test.go} (100%) rename cmd/nerdctl/container/{container_rename.go => rename.go} (100%) rename cmd/nerdctl/container/{container_rename_linux_test.go => rename_linux_test.go} (100%) rename cmd/nerdctl/container/{container_rename_windows_test.go => rename_windows_test.go} (100%) rename cmd/nerdctl/container/{container_restart.go => restart.go} (100%) rename cmd/nerdctl/container/{container_restart_linux_test.go => restart_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run.go => run.go} (100%) rename cmd/nerdctl/container/{container_run_cgroup_linux_test.go => run_cgroup_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_freebsd.go => run_freebsd.go} (100%) rename cmd/nerdctl/container/{container_run_gpus_test.go => run_gpus_test.go} (100%) rename cmd/nerdctl/container/{container_run_linux.go => run_linux.go} (100%) rename cmd/nerdctl/container/{container_run_linux_test.go => run_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_log_driver_syslog_test.go => run_log_driver_syslog_test.go} (100%) rename cmd/nerdctl/container/{container_run_mount_linux_test.go => run_mount_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_mount_windows_test.go => run_mount_windows_test.go} (100%) rename cmd/nerdctl/container/{container_run_network.go => run_network.go} (100%) rename cmd/nerdctl/container/{container_run_network_base_test.go => run_network_base_test.go} (100%) rename cmd/nerdctl/container/{container_run_network_linux_test.go => run_network_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_network_windows_test.go => run_network_windows_test.go} (100%) rename cmd/nerdctl/container/{container_run_restart_linux_test.go => run_restart_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_runtime_linux_test.go => run_runtime_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_security_linux_test.go => run_security_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_soci_linux_test.go => run_soci_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_stargz_linux_test.go => run_stargz_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_systemd_linux_test.go => run_systemd_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_test.go => run_test.go} (100%) rename cmd/nerdctl/container/{container_run_user_linux_test.go => run_user_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_user_windows_test.go => run_user_windows_test.go} (100%) rename cmd/nerdctl/container/{container_run_verify_linux_test.go => run_verify_linux_test.go} (100%) rename cmd/nerdctl/container/{container_run_windows.go => run_windows.go} (100%) rename cmd/nerdctl/container/{container_run_windows_test.go => run_windows_test.go} (100%) rename cmd/nerdctl/container/{container_start.go => start.go} (100%) rename cmd/nerdctl/container/{container_start_linux_test.go => start_linux_test.go} (100%) rename cmd/nerdctl/container/{container_start_test.go => start_test.go} (100%) rename cmd/nerdctl/container/{container_stats.go => stats.go} (100%) rename cmd/nerdctl/container/{container_stats_test.go => stats_test.go} (100%) rename cmd/nerdctl/container/{container_stop.go => stop.go} (100%) rename cmd/nerdctl/container/{container_stop_linux_test.go => stop_linux_test.go} (100%) rename cmd/nerdctl/container/{container_top.go => top.go} (100%) rename cmd/nerdctl/container/{container_top_test.go => top_test.go} (100%) rename cmd/nerdctl/container/{container_unpause.go => unpause.go} (100%) rename cmd/nerdctl/container/{container_update.go => update.go} (100%) rename cmd/nerdctl/container/{container_update_linux_test.go => update_linux_test.go} (100%) rename cmd/nerdctl/container/{container_wait.go => wait.go} (100%) rename cmd/nerdctl/container/{container_wait_test.go => wait_test.go} (100%) rename cmd/nerdctl/image/{image.go => command.go} (100%) rename cmd/nerdctl/image/{image_test.go => command_test.go} (100%) rename cmd/nerdctl/image/{image_convert.go => convert.go} (100%) rename cmd/nerdctl/image/{image_convert_linux_test.go => convert_linux_test.go} (100%) rename cmd/nerdctl/image/{image_cryptutil.go => cryptutil.go} (100%) rename cmd/nerdctl/image/{image_decrypt.go => decrypt.go} (100%) rename cmd/nerdctl/image/{image_encrypt.go => encrypt.go} (100%) rename cmd/nerdctl/image/{image_encrypt_linux_test.go => encrypt_linux_test.go} (100%) rename cmd/nerdctl/image/{image_history.go => history.go} (100%) rename cmd/nerdctl/image/{image_history_test.go => history_test.go} (100%) rename cmd/nerdctl/image/{image_inspect.go => inspect.go} (100%) rename cmd/nerdctl/image/{image_inspect_test.go => inspect_test.go} (100%) rename cmd/nerdctl/image/{image_list.go => list.go} (100%) rename cmd/nerdctl/image/{image_list_test.go => list_test.go} (100%) rename cmd/nerdctl/image/{image_load.go => load.go} (100%) rename cmd/nerdctl/image/{image_load_test.go => load_test.go} (100%) rename cmd/nerdctl/image/{image_prune.go => prune.go} (100%) rename cmd/nerdctl/image/{image_prune_test.go => prune_test.go} (100%) rename cmd/nerdctl/image/{image_pull.go => pull.go} (100%) rename cmd/nerdctl/image/{image_pull_linux_test.go => pull_linux_test.go} (100%) rename cmd/nerdctl/image/{image_push.go => push.go} (100%) rename cmd/nerdctl/image/{image_push_linux_test.go => push_linux_test.go} (100%) rename cmd/nerdctl/image/{image_remove.go => remove.go} (100%) rename cmd/nerdctl/image/{image_remove_test.go => remove_test.go} (100%) rename cmd/nerdctl/image/{image_save.go => save.go} (100%) rename cmd/nerdctl/image/{image_save_test.go => save_test.go} (100%) rename cmd/nerdctl/image/{image_tag.go => tag.go} (100%) rename cmd/nerdctl/inspect/{inspect.go => command.go} (100%) rename cmd/nerdctl/inspect/{inspect_test.go => command_test.go} (100%) rename cmd/nerdctl/internal/{internal.go => command.go} (100%) rename cmd/nerdctl/internal/{internal_oci_hook.go => oci_hook.go} (100%) rename cmd/nerdctl/ipfs/{ipfs.go => command.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_test.go => command_test.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_compose_linux_test.go => compose_linux_test.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_kubo_linux_test.go => kubo_linux_test.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_registry.go => registry.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_registry_linux_test.go => registry_linux_test.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_registry_serve.go => registry_serve.go} (100%) rename cmd/nerdctl/ipfs/{ipfs_simple_linux_test.go => simple_linux_test.go} (100%) rename cmd/nerdctl/issues/{issues_linux_test.go => linux_test.go} (100%) rename cmd/nerdctl/login/{login.go => command.go} (100%) rename cmd/nerdctl/login/{login_linux_test.go => command_linux_test.go} (100%) rename cmd/nerdctl/login/{login_test.go => command_test.go} (100%) rename cmd/nerdctl/namespace/{namespace.go => command.go} (100%) rename cmd/nerdctl/namespace/{namespace_test.go => command_test.go} (100%) rename cmd/nerdctl/namespace/{namespace_create.go => create.go} (100%) rename cmd/nerdctl/namespace/{namespace_inspect.go => inspect.go} (100%) rename cmd/nerdctl/namespace/{namespace_remove.go => remove.go} (100%) rename cmd/nerdctl/namespace/{namespace_update.go => update.go} (100%) rename cmd/nerdctl/network/{network.go => command.go} (100%) rename cmd/nerdctl/network/{network_test.go => command_test.go} (100%) rename cmd/nerdctl/network/{network_create.go => create.go} (100%) rename cmd/nerdctl/network/{network_create_linux_test.go => create_linux_test.go} (100%) rename cmd/nerdctl/network/{network_create_unix.go => create_unix.go} (100%) rename cmd/nerdctl/network/{network_create_windows.go => create_windows.go} (100%) rename cmd/nerdctl/network/{network_inspect.go => inspect.go} (100%) rename cmd/nerdctl/network/{network_inspect_test.go => inspect_test.go} (100%) rename cmd/nerdctl/network/{network_list.go => list.go} (100%) rename cmd/nerdctl/network/{network_list_linux_test.go => list_linux_test.go} (100%) rename cmd/nerdctl/network/{network_prune.go => prune.go} (100%) rename cmd/nerdctl/network/{network_prune_linux_test.go => prune_linux_test.go} (100%) rename cmd/nerdctl/network/{network_remove.go => remove.go} (100%) rename cmd/nerdctl/network/{network_remove_linux_test.go => remove_linux_test.go} (100%) rename cmd/nerdctl/system/{system.go => command.go} (100%) rename cmd/nerdctl/system/{system_test.go => command_test.go} (100%) rename cmd/nerdctl/system/{system_events.go => events.go} (100%) rename cmd/nerdctl/system/{system_events_linux_test.go => events_linux_test.go} (100%) rename cmd/nerdctl/system/{system_info.go => info.go} (100%) rename cmd/nerdctl/system/{system_info_test.go => info_test.go} (100%) rename cmd/nerdctl/system/{system_prune.go => prune.go} (100%) rename cmd/nerdctl/system/{system_prune_linux_test.go => prune_linux_test.go} (100%) rename cmd/nerdctl/volume/{volume.go => command.go} (100%) rename cmd/nerdctl/volume/{volume_test.go => command_test.go} (100%) rename cmd/nerdctl/volume/{volume_create.go => create.go} (100%) rename cmd/nerdctl/volume/{volume_create_test.go => create_test.go} (100%) rename cmd/nerdctl/volume/{volume_inspect.go => inspect.go} (100%) rename cmd/nerdctl/volume/{volume_inspect_test.go => inspect_test.go} (100%) rename cmd/nerdctl/volume/{volume_list.go => list.go} (100%) rename cmd/nerdctl/volume/{volume_list_test.go => list_test.go} (100%) rename cmd/nerdctl/volume/{volume_namespace_test.go => namespace_test.go} (100%) rename cmd/nerdctl/volume/{volume_prune.go => prune.go} (100%) rename cmd/nerdctl/volume/{volume_prune_linux_test.go => prune_linux_test.go} (100%) rename cmd/nerdctl/volume/{volume_remove.go => remove.go} (100%) rename cmd/nerdctl/volume/{volume_remove_linux_test.go => remove_linux_test.go} (100%) diff --git a/cmd/nerdctl/apparmor/apparmor_linux.go b/cmd/nerdctl/apparmor/command_linux.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_linux.go rename to cmd/nerdctl/apparmor/command_linux.go diff --git a/cmd/nerdctl/apparmor/apparmor_linux_test.go b/cmd/nerdctl/apparmor/command_linux_test.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_linux_test.go rename to cmd/nerdctl/apparmor/command_linux_test.go diff --git a/cmd/nerdctl/apparmor/apparmor_inspect_linux.go b/cmd/nerdctl/apparmor/inspect_linux.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_inspect_linux.go rename to cmd/nerdctl/apparmor/inspect_linux.go diff --git a/cmd/nerdctl/apparmor/apparmor_list_linux.go b/cmd/nerdctl/apparmor/list_linux.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_list_linux.go rename to cmd/nerdctl/apparmor/list_linux.go diff --git a/cmd/nerdctl/apparmor/apparmor_load_linux.go b/cmd/nerdctl/apparmor/load_linux.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_load_linux.go rename to cmd/nerdctl/apparmor/load_linux.go diff --git a/cmd/nerdctl/apparmor/apparmor_unload_linux.go b/cmd/nerdctl/apparmor/unload_linux.go similarity index 100% rename from cmd/nerdctl/apparmor/apparmor_unload_linux.go rename to cmd/nerdctl/apparmor/unload_linux.go diff --git a/cmd/nerdctl/builder/builder_build.go b/cmd/nerdctl/builder/build.go similarity index 100% rename from cmd/nerdctl/builder/builder_build.go rename to cmd/nerdctl/builder/build.go diff --git a/cmd/nerdctl/builder/builder_build_oci_layout_test.go b/cmd/nerdctl/builder/build_oci_layout_test.go similarity index 100% rename from cmd/nerdctl/builder/builder_build_oci_layout_test.go rename to cmd/nerdctl/builder/build_oci_layout_test.go diff --git a/cmd/nerdctl/builder/builder_build_test.go b/cmd/nerdctl/builder/build_test.go similarity index 100% rename from cmd/nerdctl/builder/builder_build_test.go rename to cmd/nerdctl/builder/build_test.go diff --git a/cmd/nerdctl/builder/builder_test.go b/cmd/nerdctl/builder/builder_test.go deleted file mode 100644 index fee2491cb9b..00000000000 --- a/cmd/nerdctl/builder/builder_test.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - Copyright The containerd Authors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -package builder - -import ( - "testing" - - "github.com/containerd/nerdctl/v2/pkg/testutil" -) - -func TestMain(m *testing.M) { - testutil.M(m) -} diff --git a/cmd/nerdctl/builder/builder.go b/cmd/nerdctl/builder/command.go similarity index 100% rename from cmd/nerdctl/builder/builder.go rename to cmd/nerdctl/builder/command.go diff --git a/cmd/nerdctl/builder/builder_builder_test.go b/cmd/nerdctl/builder/command_test.go similarity index 100% rename from cmd/nerdctl/builder/builder_builder_test.go rename to cmd/nerdctl/builder/command_test.go diff --git a/cmd/nerdctl/completion/completion.go b/cmd/nerdctl/completion/command.go similarity index 100% rename from cmd/nerdctl/completion/completion.go rename to cmd/nerdctl/completion/command.go diff --git a/cmd/nerdctl/completion/completion_freebsd.go b/cmd/nerdctl/completion/command_freebsd.go similarity index 100% rename from cmd/nerdctl/completion/completion_freebsd.go rename to cmd/nerdctl/completion/command_freebsd.go diff --git a/cmd/nerdctl/completion/completion_linux.go b/cmd/nerdctl/completion/command_linux.go similarity index 100% rename from cmd/nerdctl/completion/completion_linux.go rename to cmd/nerdctl/completion/command_linux.go diff --git a/cmd/nerdctl/completion/completion_test.go b/cmd/nerdctl/completion/command_test.go similarity index 100% rename from cmd/nerdctl/completion/completion_test.go rename to cmd/nerdctl/completion/command_test.go diff --git a/cmd/nerdctl/completion/completion_unix.go b/cmd/nerdctl/completion/command_unix.go similarity index 100% rename from cmd/nerdctl/completion/completion_unix.go rename to cmd/nerdctl/completion/command_unix.go diff --git a/cmd/nerdctl/completion/completion_windows.go b/cmd/nerdctl/completion/command_windows.go similarity index 100% rename from cmd/nerdctl/completion/completion_windows.go rename to cmd/nerdctl/completion/command_windows.go diff --git a/cmd/nerdctl/compose/compose_build.go b/cmd/nerdctl/compose/build.go similarity index 100% rename from cmd/nerdctl/compose/compose_build.go rename to cmd/nerdctl/compose/build.go diff --git a/cmd/nerdctl/compose/compose_build_linux_test.go b/cmd/nerdctl/compose/build_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_build_linux_test.go rename to cmd/nerdctl/compose/build_linux_test.go diff --git a/cmd/nerdctl/compose/compose.go b/cmd/nerdctl/compose/command.go similarity index 100% rename from cmd/nerdctl/compose/compose.go rename to cmd/nerdctl/compose/command.go diff --git a/cmd/nerdctl/compose/compose_test.go b/cmd/nerdctl/compose/command_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_test.go rename to cmd/nerdctl/compose/command_test.go diff --git a/cmd/nerdctl/compose/compose_config.go b/cmd/nerdctl/compose/config.go similarity index 100% rename from cmd/nerdctl/compose/compose_config.go rename to cmd/nerdctl/compose/config.go diff --git a/cmd/nerdctl/compose/compose_config_test.go b/cmd/nerdctl/compose/config_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_config_test.go rename to cmd/nerdctl/compose/config_test.go diff --git a/cmd/nerdctl/compose/compose_cp.go b/cmd/nerdctl/compose/cp.go similarity index 100% rename from cmd/nerdctl/compose/compose_cp.go rename to cmd/nerdctl/compose/cp.go diff --git a/cmd/nerdctl/compose/compose_cp_linux_test.go b/cmd/nerdctl/compose/cp_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_cp_linux_test.go rename to cmd/nerdctl/compose/cp_linux_test.go diff --git a/cmd/nerdctl/compose/compose_create.go b/cmd/nerdctl/compose/create.go similarity index 100% rename from cmd/nerdctl/compose/compose_create.go rename to cmd/nerdctl/compose/create.go diff --git a/cmd/nerdctl/compose/compose_create_linux_test.go b/cmd/nerdctl/compose/create_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_create_linux_test.go rename to cmd/nerdctl/compose/create_linux_test.go diff --git a/cmd/nerdctl/compose/compose_down.go b/cmd/nerdctl/compose/down.go similarity index 100% rename from cmd/nerdctl/compose/compose_down.go rename to cmd/nerdctl/compose/down.go diff --git a/cmd/nerdctl/compose/compose_down_linux_test.go b/cmd/nerdctl/compose/down_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_down_linux_test.go rename to cmd/nerdctl/compose/down_linux_test.go diff --git a/cmd/nerdctl/compose/compose_exec.go b/cmd/nerdctl/compose/exec.go similarity index 100% rename from cmd/nerdctl/compose/compose_exec.go rename to cmd/nerdctl/compose/exec.go diff --git a/cmd/nerdctl/compose/compose_exec_linux_test.go b/cmd/nerdctl/compose/exec_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_exec_linux_test.go rename to cmd/nerdctl/compose/exec_linux_test.go diff --git a/cmd/nerdctl/compose/compose_images.go b/cmd/nerdctl/compose/images.go similarity index 100% rename from cmd/nerdctl/compose/compose_images.go rename to cmd/nerdctl/compose/images.go diff --git a/cmd/nerdctl/compose/compose_images_linux_test.go b/cmd/nerdctl/compose/images_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_images_linux_test.go rename to cmd/nerdctl/compose/images_linux_test.go diff --git a/cmd/nerdctl/compose/compose_kill.go b/cmd/nerdctl/compose/kill.go similarity index 100% rename from cmd/nerdctl/compose/compose_kill.go rename to cmd/nerdctl/compose/kill.go diff --git a/cmd/nerdctl/compose/compose_kill_linux_test.go b/cmd/nerdctl/compose/kill_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_kill_linux_test.go rename to cmd/nerdctl/compose/kill_linux_test.go diff --git a/cmd/nerdctl/compose/compose_logs.go b/cmd/nerdctl/compose/logs.go similarity index 100% rename from cmd/nerdctl/compose/compose_logs.go rename to cmd/nerdctl/compose/logs.go diff --git a/cmd/nerdctl/compose/compose_pause.go b/cmd/nerdctl/compose/pause.go similarity index 100% rename from cmd/nerdctl/compose/compose_pause.go rename to cmd/nerdctl/compose/pause.go diff --git a/cmd/nerdctl/compose/compose_pause_linux_test.go b/cmd/nerdctl/compose/pause_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_pause_linux_test.go rename to cmd/nerdctl/compose/pause_linux_test.go diff --git a/cmd/nerdctl/compose/compose_port.go b/cmd/nerdctl/compose/port.go similarity index 100% rename from cmd/nerdctl/compose/compose_port.go rename to cmd/nerdctl/compose/port.go diff --git a/cmd/nerdctl/compose/compose_port_linux_test.go b/cmd/nerdctl/compose/port_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_port_linux_test.go rename to cmd/nerdctl/compose/port_linux_test.go diff --git a/cmd/nerdctl/compose/compose_ps.go b/cmd/nerdctl/compose/ps.go similarity index 100% rename from cmd/nerdctl/compose/compose_ps.go rename to cmd/nerdctl/compose/ps.go diff --git a/cmd/nerdctl/compose/compose_ps_linux_test.go b/cmd/nerdctl/compose/ps_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_ps_linux_test.go rename to cmd/nerdctl/compose/ps_linux_test.go diff --git a/cmd/nerdctl/compose/compose_pull.go b/cmd/nerdctl/compose/pull.go similarity index 100% rename from cmd/nerdctl/compose/compose_pull.go rename to cmd/nerdctl/compose/pull.go diff --git a/cmd/nerdctl/compose/compose_pull_linux_test.go b/cmd/nerdctl/compose/pull_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_pull_linux_test.go rename to cmd/nerdctl/compose/pull_linux_test.go diff --git a/cmd/nerdctl/compose/compose_push.go b/cmd/nerdctl/compose/push.go similarity index 100% rename from cmd/nerdctl/compose/compose_push.go rename to cmd/nerdctl/compose/push.go diff --git a/cmd/nerdctl/compose/compose_restart.go b/cmd/nerdctl/compose/restart.go similarity index 100% rename from cmd/nerdctl/compose/compose_restart.go rename to cmd/nerdctl/compose/restart.go diff --git a/cmd/nerdctl/compose/compose_restart_linux_test.go b/cmd/nerdctl/compose/restart_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_restart_linux_test.go rename to cmd/nerdctl/compose/restart_linux_test.go diff --git a/cmd/nerdctl/compose/compose_rm.go b/cmd/nerdctl/compose/rm.go similarity index 100% rename from cmd/nerdctl/compose/compose_rm.go rename to cmd/nerdctl/compose/rm.go diff --git a/cmd/nerdctl/compose/compose_rm_linux_test.go b/cmd/nerdctl/compose/rm_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_rm_linux_test.go rename to cmd/nerdctl/compose/rm_linux_test.go diff --git a/cmd/nerdctl/compose/compose_run.go b/cmd/nerdctl/compose/run.go similarity index 100% rename from cmd/nerdctl/compose/compose_run.go rename to cmd/nerdctl/compose/run.go diff --git a/cmd/nerdctl/compose/compose_run_linux_test.go b/cmd/nerdctl/compose/run_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_run_linux_test.go rename to cmd/nerdctl/compose/run_linux_test.go diff --git a/cmd/nerdctl/compose/compose_start.go b/cmd/nerdctl/compose/start.go similarity index 100% rename from cmd/nerdctl/compose/compose_start.go rename to cmd/nerdctl/compose/start.go diff --git a/cmd/nerdctl/compose/compose_start_linux_test.go b/cmd/nerdctl/compose/start_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_start_linux_test.go rename to cmd/nerdctl/compose/start_linux_test.go diff --git a/cmd/nerdctl/compose/compose_stop.go b/cmd/nerdctl/compose/stop.go similarity index 100% rename from cmd/nerdctl/compose/compose_stop.go rename to cmd/nerdctl/compose/stop.go diff --git a/cmd/nerdctl/compose/compose_stop_linux_test.go b/cmd/nerdctl/compose/stop_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_stop_linux_test.go rename to cmd/nerdctl/compose/stop_linux_test.go diff --git a/cmd/nerdctl/compose/compose_top.go b/cmd/nerdctl/compose/top.go similarity index 100% rename from cmd/nerdctl/compose/compose_top.go rename to cmd/nerdctl/compose/top.go diff --git a/cmd/nerdctl/compose/compose_top_linux_test.go b/cmd/nerdctl/compose/top_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_top_linux_test.go rename to cmd/nerdctl/compose/top_linux_test.go diff --git a/cmd/nerdctl/compose/compose_up.go b/cmd/nerdctl/compose/up.go similarity index 100% rename from cmd/nerdctl/compose/compose_up.go rename to cmd/nerdctl/compose/up.go diff --git a/cmd/nerdctl/compose/compose_up_linux_test.go b/cmd/nerdctl/compose/up_linux_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_up_linux_test.go rename to cmd/nerdctl/compose/up_linux_test.go diff --git a/cmd/nerdctl/compose/compose_up_test.go b/cmd/nerdctl/compose/up_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_up_test.go rename to cmd/nerdctl/compose/up_test.go diff --git a/cmd/nerdctl/compose/compose_version.go b/cmd/nerdctl/compose/version.go similarity index 100% rename from cmd/nerdctl/compose/compose_version.go rename to cmd/nerdctl/compose/version.go diff --git a/cmd/nerdctl/compose/compose_version_test.go b/cmd/nerdctl/compose/version_test.go similarity index 100% rename from cmd/nerdctl/compose/compose_version_test.go rename to cmd/nerdctl/compose/version_test.go diff --git a/cmd/nerdctl/container/container_attach.go b/cmd/nerdctl/container/attach.go similarity index 100% rename from cmd/nerdctl/container/container_attach.go rename to cmd/nerdctl/container/attach.go diff --git a/cmd/nerdctl/container/container_attach_linux_test.go b/cmd/nerdctl/container/attach_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_attach_linux_test.go rename to cmd/nerdctl/container/attach_linux_test.go diff --git a/cmd/nerdctl/container/container.go b/cmd/nerdctl/container/command.go similarity index 100% rename from cmd/nerdctl/container/container.go rename to cmd/nerdctl/container/command.go diff --git a/cmd/nerdctl/container/container_test.go b/cmd/nerdctl/container/command_test.go similarity index 100% rename from cmd/nerdctl/container/container_test.go rename to cmd/nerdctl/container/command_test.go diff --git a/cmd/nerdctl/container/container_commit.go b/cmd/nerdctl/container/commit.go similarity index 100% rename from cmd/nerdctl/container/container_commit.go rename to cmd/nerdctl/container/commit.go diff --git a/cmd/nerdctl/container/container_commit_linux_test.go b/cmd/nerdctl/container/commit_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_commit_linux_test.go rename to cmd/nerdctl/container/commit_linux_test.go diff --git a/cmd/nerdctl/container/container_commit_test.go b/cmd/nerdctl/container/commit_test.go similarity index 100% rename from cmd/nerdctl/container/container_commit_test.go rename to cmd/nerdctl/container/commit_test.go diff --git a/cmd/nerdctl/container/container_cp_acid_linux_test.go b/cmd/nerdctl/container/cp_acid_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_cp_acid_linux_test.go rename to cmd/nerdctl/container/cp_acid_linux_test.go diff --git a/cmd/nerdctl/container/container_cp_freebsd.go b/cmd/nerdctl/container/cp_freebsd.go similarity index 100% rename from cmd/nerdctl/container/container_cp_freebsd.go rename to cmd/nerdctl/container/cp_freebsd.go diff --git a/cmd/nerdctl/container/container_cp_linux.go b/cmd/nerdctl/container/cp_linux.go similarity index 100% rename from cmd/nerdctl/container/container_cp_linux.go rename to cmd/nerdctl/container/cp_linux.go diff --git a/cmd/nerdctl/container/container_cp_linux_test.go b/cmd/nerdctl/container/cp_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_cp_linux_test.go rename to cmd/nerdctl/container/cp_linux_test.go diff --git a/cmd/nerdctl/container/container_cp_windows.go b/cmd/nerdctl/container/cp_windows.go similarity index 100% rename from cmd/nerdctl/container/container_cp_windows.go rename to cmd/nerdctl/container/cp_windows.go diff --git a/cmd/nerdctl/container/container_create.go b/cmd/nerdctl/container/create.go similarity index 100% rename from cmd/nerdctl/container/container_create.go rename to cmd/nerdctl/container/create.go diff --git a/cmd/nerdctl/container/container_create_linux_test.go b/cmd/nerdctl/container/create_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_create_linux_test.go rename to cmd/nerdctl/container/create_linux_test.go diff --git a/cmd/nerdctl/container/container_create_test.go b/cmd/nerdctl/container/create_test.go similarity index 100% rename from cmd/nerdctl/container/container_create_test.go rename to cmd/nerdctl/container/create_test.go diff --git a/cmd/nerdctl/container/container_diff.go b/cmd/nerdctl/container/diff.go similarity index 100% rename from cmd/nerdctl/container/container_diff.go rename to cmd/nerdctl/container/diff.go diff --git a/cmd/nerdctl/container/container_diff_test.go b/cmd/nerdctl/container/diff_test.go similarity index 100% rename from cmd/nerdctl/container/container_diff_test.go rename to cmd/nerdctl/container/diff_test.go diff --git a/cmd/nerdctl/container/container_exec.go b/cmd/nerdctl/container/exec.go similarity index 100% rename from cmd/nerdctl/container/container_exec.go rename to cmd/nerdctl/container/exec.go diff --git a/cmd/nerdctl/container/container_exec_linux_test.go b/cmd/nerdctl/container/exec_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_exec_linux_test.go rename to cmd/nerdctl/container/exec_linux_test.go diff --git a/cmd/nerdctl/container/container_exec_test.go b/cmd/nerdctl/container/exec_test.go similarity index 100% rename from cmd/nerdctl/container/container_exec_test.go rename to cmd/nerdctl/container/exec_test.go diff --git a/cmd/nerdctl/container/container_inspect.go b/cmd/nerdctl/container/inspect.go similarity index 100% rename from cmd/nerdctl/container/container_inspect.go rename to cmd/nerdctl/container/inspect.go diff --git a/cmd/nerdctl/container/container_inspect_linux_test.go b/cmd/nerdctl/container/inspect_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_inspect_linux_test.go rename to cmd/nerdctl/container/inspect_linux_test.go diff --git a/cmd/nerdctl/container/container_inspect_windows_test.go b/cmd/nerdctl/container/inspect_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_inspect_windows_test.go rename to cmd/nerdctl/container/inspect_windows_test.go diff --git a/cmd/nerdctl/container/container_kill.go b/cmd/nerdctl/container/kill.go similarity index 100% rename from cmd/nerdctl/container/container_kill.go rename to cmd/nerdctl/container/kill.go diff --git a/cmd/nerdctl/container/container_kill_linux_test.go b/cmd/nerdctl/container/kill_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_kill_linux_test.go rename to cmd/nerdctl/container/kill_linux_test.go diff --git a/cmd/nerdctl/container/container_list.go b/cmd/nerdctl/container/list.go similarity index 100% rename from cmd/nerdctl/container/container_list.go rename to cmd/nerdctl/container/list.go diff --git a/cmd/nerdctl/container/container_list_linux_test.go b/cmd/nerdctl/container/list_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_list_linux_test.go rename to cmd/nerdctl/container/list_linux_test.go diff --git a/cmd/nerdctl/container/container_list_test.go b/cmd/nerdctl/container/list_test.go similarity index 100% rename from cmd/nerdctl/container/container_list_test.go rename to cmd/nerdctl/container/list_test.go diff --git a/cmd/nerdctl/container/container_list_windows_test.go b/cmd/nerdctl/container/list_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_list_windows_test.go rename to cmd/nerdctl/container/list_windows_test.go diff --git a/cmd/nerdctl/container/container_logs.go b/cmd/nerdctl/container/logs.go similarity index 100% rename from cmd/nerdctl/container/container_logs.go rename to cmd/nerdctl/container/logs.go diff --git a/cmd/nerdctl/container/container_logs_test.go b/cmd/nerdctl/container/logs_test.go similarity index 100% rename from cmd/nerdctl/container/container_logs_test.go rename to cmd/nerdctl/container/logs_test.go diff --git a/cmd/nerdctl/container/container_pause.go b/cmd/nerdctl/container/pause.go similarity index 100% rename from cmd/nerdctl/container/container_pause.go rename to cmd/nerdctl/container/pause.go diff --git a/cmd/nerdctl/container/container_port.go b/cmd/nerdctl/container/port.go similarity index 100% rename from cmd/nerdctl/container/container_port.go rename to cmd/nerdctl/container/port.go diff --git a/cmd/nerdctl/container/container_prune.go b/cmd/nerdctl/container/prune.go similarity index 100% rename from cmd/nerdctl/container/container_prune.go rename to cmd/nerdctl/container/prune.go diff --git a/cmd/nerdctl/container/container_prune_linux_test.go b/cmd/nerdctl/container/prune_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_prune_linux_test.go rename to cmd/nerdctl/container/prune_linux_test.go diff --git a/cmd/nerdctl/container/container_remove.go b/cmd/nerdctl/container/remove.go similarity index 100% rename from cmd/nerdctl/container/container_remove.go rename to cmd/nerdctl/container/remove.go diff --git a/cmd/nerdctl/container/container_remove_test.go b/cmd/nerdctl/container/remove_test.go similarity index 100% rename from cmd/nerdctl/container/container_remove_test.go rename to cmd/nerdctl/container/remove_test.go diff --git a/cmd/nerdctl/container/container_remove_windows_test.go b/cmd/nerdctl/container/remove_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_remove_windows_test.go rename to cmd/nerdctl/container/remove_windows_test.go diff --git a/cmd/nerdctl/container/container_rename.go b/cmd/nerdctl/container/rename.go similarity index 100% rename from cmd/nerdctl/container/container_rename.go rename to cmd/nerdctl/container/rename.go diff --git a/cmd/nerdctl/container/container_rename_linux_test.go b/cmd/nerdctl/container/rename_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_rename_linux_test.go rename to cmd/nerdctl/container/rename_linux_test.go diff --git a/cmd/nerdctl/container/container_rename_windows_test.go b/cmd/nerdctl/container/rename_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_rename_windows_test.go rename to cmd/nerdctl/container/rename_windows_test.go diff --git a/cmd/nerdctl/container/container_restart.go b/cmd/nerdctl/container/restart.go similarity index 100% rename from cmd/nerdctl/container/container_restart.go rename to cmd/nerdctl/container/restart.go diff --git a/cmd/nerdctl/container/container_restart_linux_test.go b/cmd/nerdctl/container/restart_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_restart_linux_test.go rename to cmd/nerdctl/container/restart_linux_test.go diff --git a/cmd/nerdctl/container/container_run.go b/cmd/nerdctl/container/run.go similarity index 100% rename from cmd/nerdctl/container/container_run.go rename to cmd/nerdctl/container/run.go diff --git a/cmd/nerdctl/container/container_run_cgroup_linux_test.go b/cmd/nerdctl/container/run_cgroup_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_cgroup_linux_test.go rename to cmd/nerdctl/container/run_cgroup_linux_test.go diff --git a/cmd/nerdctl/container/container_run_freebsd.go b/cmd/nerdctl/container/run_freebsd.go similarity index 100% rename from cmd/nerdctl/container/container_run_freebsd.go rename to cmd/nerdctl/container/run_freebsd.go diff --git a/cmd/nerdctl/container/container_run_gpus_test.go b/cmd/nerdctl/container/run_gpus_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_gpus_test.go rename to cmd/nerdctl/container/run_gpus_test.go diff --git a/cmd/nerdctl/container/container_run_linux.go b/cmd/nerdctl/container/run_linux.go similarity index 100% rename from cmd/nerdctl/container/container_run_linux.go rename to cmd/nerdctl/container/run_linux.go diff --git a/cmd/nerdctl/container/container_run_linux_test.go b/cmd/nerdctl/container/run_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_linux_test.go rename to cmd/nerdctl/container/run_linux_test.go diff --git a/cmd/nerdctl/container/container_run_log_driver_syslog_test.go b/cmd/nerdctl/container/run_log_driver_syslog_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_log_driver_syslog_test.go rename to cmd/nerdctl/container/run_log_driver_syslog_test.go diff --git a/cmd/nerdctl/container/container_run_mount_linux_test.go b/cmd/nerdctl/container/run_mount_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_mount_linux_test.go rename to cmd/nerdctl/container/run_mount_linux_test.go diff --git a/cmd/nerdctl/container/container_run_mount_windows_test.go b/cmd/nerdctl/container/run_mount_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_mount_windows_test.go rename to cmd/nerdctl/container/run_mount_windows_test.go diff --git a/cmd/nerdctl/container/container_run_network.go b/cmd/nerdctl/container/run_network.go similarity index 100% rename from cmd/nerdctl/container/container_run_network.go rename to cmd/nerdctl/container/run_network.go diff --git a/cmd/nerdctl/container/container_run_network_base_test.go b/cmd/nerdctl/container/run_network_base_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_network_base_test.go rename to cmd/nerdctl/container/run_network_base_test.go diff --git a/cmd/nerdctl/container/container_run_network_linux_test.go b/cmd/nerdctl/container/run_network_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_network_linux_test.go rename to cmd/nerdctl/container/run_network_linux_test.go diff --git a/cmd/nerdctl/container/container_run_network_windows_test.go b/cmd/nerdctl/container/run_network_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_network_windows_test.go rename to cmd/nerdctl/container/run_network_windows_test.go diff --git a/cmd/nerdctl/container/container_run_restart_linux_test.go b/cmd/nerdctl/container/run_restart_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_restart_linux_test.go rename to cmd/nerdctl/container/run_restart_linux_test.go diff --git a/cmd/nerdctl/container/container_run_runtime_linux_test.go b/cmd/nerdctl/container/run_runtime_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_runtime_linux_test.go rename to cmd/nerdctl/container/run_runtime_linux_test.go diff --git a/cmd/nerdctl/container/container_run_security_linux_test.go b/cmd/nerdctl/container/run_security_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_security_linux_test.go rename to cmd/nerdctl/container/run_security_linux_test.go diff --git a/cmd/nerdctl/container/container_run_soci_linux_test.go b/cmd/nerdctl/container/run_soci_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_soci_linux_test.go rename to cmd/nerdctl/container/run_soci_linux_test.go diff --git a/cmd/nerdctl/container/container_run_stargz_linux_test.go b/cmd/nerdctl/container/run_stargz_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_stargz_linux_test.go rename to cmd/nerdctl/container/run_stargz_linux_test.go diff --git a/cmd/nerdctl/container/container_run_systemd_linux_test.go b/cmd/nerdctl/container/run_systemd_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_systemd_linux_test.go rename to cmd/nerdctl/container/run_systemd_linux_test.go diff --git a/cmd/nerdctl/container/container_run_test.go b/cmd/nerdctl/container/run_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_test.go rename to cmd/nerdctl/container/run_test.go diff --git a/cmd/nerdctl/container/container_run_user_linux_test.go b/cmd/nerdctl/container/run_user_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_user_linux_test.go rename to cmd/nerdctl/container/run_user_linux_test.go diff --git a/cmd/nerdctl/container/container_run_user_windows_test.go b/cmd/nerdctl/container/run_user_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_user_windows_test.go rename to cmd/nerdctl/container/run_user_windows_test.go diff --git a/cmd/nerdctl/container/container_run_verify_linux_test.go b/cmd/nerdctl/container/run_verify_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_verify_linux_test.go rename to cmd/nerdctl/container/run_verify_linux_test.go diff --git a/cmd/nerdctl/container/container_run_windows.go b/cmd/nerdctl/container/run_windows.go similarity index 100% rename from cmd/nerdctl/container/container_run_windows.go rename to cmd/nerdctl/container/run_windows.go diff --git a/cmd/nerdctl/container/container_run_windows_test.go b/cmd/nerdctl/container/run_windows_test.go similarity index 100% rename from cmd/nerdctl/container/container_run_windows_test.go rename to cmd/nerdctl/container/run_windows_test.go diff --git a/cmd/nerdctl/container/container_start.go b/cmd/nerdctl/container/start.go similarity index 100% rename from cmd/nerdctl/container/container_start.go rename to cmd/nerdctl/container/start.go diff --git a/cmd/nerdctl/container/container_start_linux_test.go b/cmd/nerdctl/container/start_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_start_linux_test.go rename to cmd/nerdctl/container/start_linux_test.go diff --git a/cmd/nerdctl/container/container_start_test.go b/cmd/nerdctl/container/start_test.go similarity index 100% rename from cmd/nerdctl/container/container_start_test.go rename to cmd/nerdctl/container/start_test.go diff --git a/cmd/nerdctl/container/container_stats.go b/cmd/nerdctl/container/stats.go similarity index 100% rename from cmd/nerdctl/container/container_stats.go rename to cmd/nerdctl/container/stats.go diff --git a/cmd/nerdctl/container/container_stats_test.go b/cmd/nerdctl/container/stats_test.go similarity index 100% rename from cmd/nerdctl/container/container_stats_test.go rename to cmd/nerdctl/container/stats_test.go diff --git a/cmd/nerdctl/container/container_stop.go b/cmd/nerdctl/container/stop.go similarity index 100% rename from cmd/nerdctl/container/container_stop.go rename to cmd/nerdctl/container/stop.go diff --git a/cmd/nerdctl/container/container_stop_linux_test.go b/cmd/nerdctl/container/stop_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_stop_linux_test.go rename to cmd/nerdctl/container/stop_linux_test.go diff --git a/cmd/nerdctl/container/container_top.go b/cmd/nerdctl/container/top.go similarity index 100% rename from cmd/nerdctl/container/container_top.go rename to cmd/nerdctl/container/top.go diff --git a/cmd/nerdctl/container/container_top_test.go b/cmd/nerdctl/container/top_test.go similarity index 100% rename from cmd/nerdctl/container/container_top_test.go rename to cmd/nerdctl/container/top_test.go diff --git a/cmd/nerdctl/container/container_unpause.go b/cmd/nerdctl/container/unpause.go similarity index 100% rename from cmd/nerdctl/container/container_unpause.go rename to cmd/nerdctl/container/unpause.go diff --git a/cmd/nerdctl/container/container_update.go b/cmd/nerdctl/container/update.go similarity index 100% rename from cmd/nerdctl/container/container_update.go rename to cmd/nerdctl/container/update.go diff --git a/cmd/nerdctl/container/container_update_linux_test.go b/cmd/nerdctl/container/update_linux_test.go similarity index 100% rename from cmd/nerdctl/container/container_update_linux_test.go rename to cmd/nerdctl/container/update_linux_test.go diff --git a/cmd/nerdctl/container/container_wait.go b/cmd/nerdctl/container/wait.go similarity index 100% rename from cmd/nerdctl/container/container_wait.go rename to cmd/nerdctl/container/wait.go diff --git a/cmd/nerdctl/container/container_wait_test.go b/cmd/nerdctl/container/wait_test.go similarity index 100% rename from cmd/nerdctl/container/container_wait_test.go rename to cmd/nerdctl/container/wait_test.go diff --git a/cmd/nerdctl/image/image.go b/cmd/nerdctl/image/command.go similarity index 100% rename from cmd/nerdctl/image/image.go rename to cmd/nerdctl/image/command.go diff --git a/cmd/nerdctl/image/image_test.go b/cmd/nerdctl/image/command_test.go similarity index 100% rename from cmd/nerdctl/image/image_test.go rename to cmd/nerdctl/image/command_test.go diff --git a/cmd/nerdctl/image/image_convert.go b/cmd/nerdctl/image/convert.go similarity index 100% rename from cmd/nerdctl/image/image_convert.go rename to cmd/nerdctl/image/convert.go diff --git a/cmd/nerdctl/image/image_convert_linux_test.go b/cmd/nerdctl/image/convert_linux_test.go similarity index 100% rename from cmd/nerdctl/image/image_convert_linux_test.go rename to cmd/nerdctl/image/convert_linux_test.go diff --git a/cmd/nerdctl/image/image_cryptutil.go b/cmd/nerdctl/image/cryptutil.go similarity index 100% rename from cmd/nerdctl/image/image_cryptutil.go rename to cmd/nerdctl/image/cryptutil.go diff --git a/cmd/nerdctl/image/image_decrypt.go b/cmd/nerdctl/image/decrypt.go similarity index 100% rename from cmd/nerdctl/image/image_decrypt.go rename to cmd/nerdctl/image/decrypt.go diff --git a/cmd/nerdctl/image/image_encrypt.go b/cmd/nerdctl/image/encrypt.go similarity index 100% rename from cmd/nerdctl/image/image_encrypt.go rename to cmd/nerdctl/image/encrypt.go diff --git a/cmd/nerdctl/image/image_encrypt_linux_test.go b/cmd/nerdctl/image/encrypt_linux_test.go similarity index 100% rename from cmd/nerdctl/image/image_encrypt_linux_test.go rename to cmd/nerdctl/image/encrypt_linux_test.go diff --git a/cmd/nerdctl/image/image_history.go b/cmd/nerdctl/image/history.go similarity index 100% rename from cmd/nerdctl/image/image_history.go rename to cmd/nerdctl/image/history.go diff --git a/cmd/nerdctl/image/image_history_test.go b/cmd/nerdctl/image/history_test.go similarity index 100% rename from cmd/nerdctl/image/image_history_test.go rename to cmd/nerdctl/image/history_test.go diff --git a/cmd/nerdctl/image/image_inspect.go b/cmd/nerdctl/image/inspect.go similarity index 100% rename from cmd/nerdctl/image/image_inspect.go rename to cmd/nerdctl/image/inspect.go diff --git a/cmd/nerdctl/image/image_inspect_test.go b/cmd/nerdctl/image/inspect_test.go similarity index 100% rename from cmd/nerdctl/image/image_inspect_test.go rename to cmd/nerdctl/image/inspect_test.go diff --git a/cmd/nerdctl/image/image_list.go b/cmd/nerdctl/image/list.go similarity index 100% rename from cmd/nerdctl/image/image_list.go rename to cmd/nerdctl/image/list.go diff --git a/cmd/nerdctl/image/image_list_test.go b/cmd/nerdctl/image/list_test.go similarity index 100% rename from cmd/nerdctl/image/image_list_test.go rename to cmd/nerdctl/image/list_test.go diff --git a/cmd/nerdctl/image/image_load.go b/cmd/nerdctl/image/load.go similarity index 100% rename from cmd/nerdctl/image/image_load.go rename to cmd/nerdctl/image/load.go diff --git a/cmd/nerdctl/image/image_load_test.go b/cmd/nerdctl/image/load_test.go similarity index 100% rename from cmd/nerdctl/image/image_load_test.go rename to cmd/nerdctl/image/load_test.go diff --git a/cmd/nerdctl/image/image_prune.go b/cmd/nerdctl/image/prune.go similarity index 100% rename from cmd/nerdctl/image/image_prune.go rename to cmd/nerdctl/image/prune.go diff --git a/cmd/nerdctl/image/image_prune_test.go b/cmd/nerdctl/image/prune_test.go similarity index 100% rename from cmd/nerdctl/image/image_prune_test.go rename to cmd/nerdctl/image/prune_test.go diff --git a/cmd/nerdctl/image/image_pull.go b/cmd/nerdctl/image/pull.go similarity index 100% rename from cmd/nerdctl/image/image_pull.go rename to cmd/nerdctl/image/pull.go diff --git a/cmd/nerdctl/image/image_pull_linux_test.go b/cmd/nerdctl/image/pull_linux_test.go similarity index 100% rename from cmd/nerdctl/image/image_pull_linux_test.go rename to cmd/nerdctl/image/pull_linux_test.go diff --git a/cmd/nerdctl/image/image_push.go b/cmd/nerdctl/image/push.go similarity index 100% rename from cmd/nerdctl/image/image_push.go rename to cmd/nerdctl/image/push.go diff --git a/cmd/nerdctl/image/image_push_linux_test.go b/cmd/nerdctl/image/push_linux_test.go similarity index 100% rename from cmd/nerdctl/image/image_push_linux_test.go rename to cmd/nerdctl/image/push_linux_test.go diff --git a/cmd/nerdctl/image/image_remove.go b/cmd/nerdctl/image/remove.go similarity index 100% rename from cmd/nerdctl/image/image_remove.go rename to cmd/nerdctl/image/remove.go diff --git a/cmd/nerdctl/image/image_remove_test.go b/cmd/nerdctl/image/remove_test.go similarity index 100% rename from cmd/nerdctl/image/image_remove_test.go rename to cmd/nerdctl/image/remove_test.go diff --git a/cmd/nerdctl/image/image_save.go b/cmd/nerdctl/image/save.go similarity index 100% rename from cmd/nerdctl/image/image_save.go rename to cmd/nerdctl/image/save.go diff --git a/cmd/nerdctl/image/image_save_test.go b/cmd/nerdctl/image/save_test.go similarity index 100% rename from cmd/nerdctl/image/image_save_test.go rename to cmd/nerdctl/image/save_test.go diff --git a/cmd/nerdctl/image/image_tag.go b/cmd/nerdctl/image/tag.go similarity index 100% rename from cmd/nerdctl/image/image_tag.go rename to cmd/nerdctl/image/tag.go diff --git a/cmd/nerdctl/inspect/inspect.go b/cmd/nerdctl/inspect/command.go similarity index 100% rename from cmd/nerdctl/inspect/inspect.go rename to cmd/nerdctl/inspect/command.go diff --git a/cmd/nerdctl/inspect/inspect_test.go b/cmd/nerdctl/inspect/command_test.go similarity index 100% rename from cmd/nerdctl/inspect/inspect_test.go rename to cmd/nerdctl/inspect/command_test.go diff --git a/cmd/nerdctl/internal/internal.go b/cmd/nerdctl/internal/command.go similarity index 100% rename from cmd/nerdctl/internal/internal.go rename to cmd/nerdctl/internal/command.go diff --git a/cmd/nerdctl/internal/internal_oci_hook.go b/cmd/nerdctl/internal/oci_hook.go similarity index 100% rename from cmd/nerdctl/internal/internal_oci_hook.go rename to cmd/nerdctl/internal/oci_hook.go diff --git a/cmd/nerdctl/ipfs/ipfs.go b/cmd/nerdctl/ipfs/command.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs.go rename to cmd/nerdctl/ipfs/command.go diff --git a/cmd/nerdctl/ipfs/ipfs_test.go b/cmd/nerdctl/ipfs/command_test.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_test.go rename to cmd/nerdctl/ipfs/command_test.go diff --git a/cmd/nerdctl/ipfs/ipfs_compose_linux_test.go b/cmd/nerdctl/ipfs/compose_linux_test.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_compose_linux_test.go rename to cmd/nerdctl/ipfs/compose_linux_test.go diff --git a/cmd/nerdctl/ipfs/ipfs_kubo_linux_test.go b/cmd/nerdctl/ipfs/kubo_linux_test.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_kubo_linux_test.go rename to cmd/nerdctl/ipfs/kubo_linux_test.go diff --git a/cmd/nerdctl/ipfs/ipfs_registry.go b/cmd/nerdctl/ipfs/registry.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_registry.go rename to cmd/nerdctl/ipfs/registry.go diff --git a/cmd/nerdctl/ipfs/ipfs_registry_linux_test.go b/cmd/nerdctl/ipfs/registry_linux_test.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_registry_linux_test.go rename to cmd/nerdctl/ipfs/registry_linux_test.go diff --git a/cmd/nerdctl/ipfs/ipfs_registry_serve.go b/cmd/nerdctl/ipfs/registry_serve.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_registry_serve.go rename to cmd/nerdctl/ipfs/registry_serve.go diff --git a/cmd/nerdctl/ipfs/ipfs_simple_linux_test.go b/cmd/nerdctl/ipfs/simple_linux_test.go similarity index 100% rename from cmd/nerdctl/ipfs/ipfs_simple_linux_test.go rename to cmd/nerdctl/ipfs/simple_linux_test.go diff --git a/cmd/nerdctl/issues/issues_linux_test.go b/cmd/nerdctl/issues/linux_test.go similarity index 100% rename from cmd/nerdctl/issues/issues_linux_test.go rename to cmd/nerdctl/issues/linux_test.go diff --git a/cmd/nerdctl/login/login.go b/cmd/nerdctl/login/command.go similarity index 100% rename from cmd/nerdctl/login/login.go rename to cmd/nerdctl/login/command.go diff --git a/cmd/nerdctl/login/login_linux_test.go b/cmd/nerdctl/login/command_linux_test.go similarity index 100% rename from cmd/nerdctl/login/login_linux_test.go rename to cmd/nerdctl/login/command_linux_test.go diff --git a/cmd/nerdctl/login/login_test.go b/cmd/nerdctl/login/command_test.go similarity index 100% rename from cmd/nerdctl/login/login_test.go rename to cmd/nerdctl/login/command_test.go diff --git a/cmd/nerdctl/namespace/namespace.go b/cmd/nerdctl/namespace/command.go similarity index 100% rename from cmd/nerdctl/namespace/namespace.go rename to cmd/nerdctl/namespace/command.go diff --git a/cmd/nerdctl/namespace/namespace_test.go b/cmd/nerdctl/namespace/command_test.go similarity index 100% rename from cmd/nerdctl/namespace/namespace_test.go rename to cmd/nerdctl/namespace/command_test.go diff --git a/cmd/nerdctl/namespace/namespace_create.go b/cmd/nerdctl/namespace/create.go similarity index 100% rename from cmd/nerdctl/namespace/namespace_create.go rename to cmd/nerdctl/namespace/create.go diff --git a/cmd/nerdctl/namespace/namespace_inspect.go b/cmd/nerdctl/namespace/inspect.go similarity index 100% rename from cmd/nerdctl/namespace/namespace_inspect.go rename to cmd/nerdctl/namespace/inspect.go diff --git a/cmd/nerdctl/namespace/namespace_remove.go b/cmd/nerdctl/namespace/remove.go similarity index 100% rename from cmd/nerdctl/namespace/namespace_remove.go rename to cmd/nerdctl/namespace/remove.go diff --git a/cmd/nerdctl/namespace/namespace_update.go b/cmd/nerdctl/namespace/update.go similarity index 100% rename from cmd/nerdctl/namespace/namespace_update.go rename to cmd/nerdctl/namespace/update.go diff --git a/cmd/nerdctl/network/network.go b/cmd/nerdctl/network/command.go similarity index 100% rename from cmd/nerdctl/network/network.go rename to cmd/nerdctl/network/command.go diff --git a/cmd/nerdctl/network/network_test.go b/cmd/nerdctl/network/command_test.go similarity index 100% rename from cmd/nerdctl/network/network_test.go rename to cmd/nerdctl/network/command_test.go diff --git a/cmd/nerdctl/network/network_create.go b/cmd/nerdctl/network/create.go similarity index 100% rename from cmd/nerdctl/network/network_create.go rename to cmd/nerdctl/network/create.go diff --git a/cmd/nerdctl/network/network_create_linux_test.go b/cmd/nerdctl/network/create_linux_test.go similarity index 100% rename from cmd/nerdctl/network/network_create_linux_test.go rename to cmd/nerdctl/network/create_linux_test.go diff --git a/cmd/nerdctl/network/network_create_unix.go b/cmd/nerdctl/network/create_unix.go similarity index 100% rename from cmd/nerdctl/network/network_create_unix.go rename to cmd/nerdctl/network/create_unix.go diff --git a/cmd/nerdctl/network/network_create_windows.go b/cmd/nerdctl/network/create_windows.go similarity index 100% rename from cmd/nerdctl/network/network_create_windows.go rename to cmd/nerdctl/network/create_windows.go diff --git a/cmd/nerdctl/network/network_inspect.go b/cmd/nerdctl/network/inspect.go similarity index 100% rename from cmd/nerdctl/network/network_inspect.go rename to cmd/nerdctl/network/inspect.go diff --git a/cmd/nerdctl/network/network_inspect_test.go b/cmd/nerdctl/network/inspect_test.go similarity index 100% rename from cmd/nerdctl/network/network_inspect_test.go rename to cmd/nerdctl/network/inspect_test.go diff --git a/cmd/nerdctl/network/network_list.go b/cmd/nerdctl/network/list.go similarity index 100% rename from cmd/nerdctl/network/network_list.go rename to cmd/nerdctl/network/list.go diff --git a/cmd/nerdctl/network/network_list_linux_test.go b/cmd/nerdctl/network/list_linux_test.go similarity index 100% rename from cmd/nerdctl/network/network_list_linux_test.go rename to cmd/nerdctl/network/list_linux_test.go diff --git a/cmd/nerdctl/network/network_prune.go b/cmd/nerdctl/network/prune.go similarity index 100% rename from cmd/nerdctl/network/network_prune.go rename to cmd/nerdctl/network/prune.go diff --git a/cmd/nerdctl/network/network_prune_linux_test.go b/cmd/nerdctl/network/prune_linux_test.go similarity index 100% rename from cmd/nerdctl/network/network_prune_linux_test.go rename to cmd/nerdctl/network/prune_linux_test.go diff --git a/cmd/nerdctl/network/network_remove.go b/cmd/nerdctl/network/remove.go similarity index 100% rename from cmd/nerdctl/network/network_remove.go rename to cmd/nerdctl/network/remove.go diff --git a/cmd/nerdctl/network/network_remove_linux_test.go b/cmd/nerdctl/network/remove_linux_test.go similarity index 100% rename from cmd/nerdctl/network/network_remove_linux_test.go rename to cmd/nerdctl/network/remove_linux_test.go diff --git a/cmd/nerdctl/system/system.go b/cmd/nerdctl/system/command.go similarity index 100% rename from cmd/nerdctl/system/system.go rename to cmd/nerdctl/system/command.go diff --git a/cmd/nerdctl/system/system_test.go b/cmd/nerdctl/system/command_test.go similarity index 100% rename from cmd/nerdctl/system/system_test.go rename to cmd/nerdctl/system/command_test.go diff --git a/cmd/nerdctl/system/system_events.go b/cmd/nerdctl/system/events.go similarity index 100% rename from cmd/nerdctl/system/system_events.go rename to cmd/nerdctl/system/events.go diff --git a/cmd/nerdctl/system/system_events_linux_test.go b/cmd/nerdctl/system/events_linux_test.go similarity index 100% rename from cmd/nerdctl/system/system_events_linux_test.go rename to cmd/nerdctl/system/events_linux_test.go diff --git a/cmd/nerdctl/system/system_info.go b/cmd/nerdctl/system/info.go similarity index 100% rename from cmd/nerdctl/system/system_info.go rename to cmd/nerdctl/system/info.go diff --git a/cmd/nerdctl/system/system_info_test.go b/cmd/nerdctl/system/info_test.go similarity index 100% rename from cmd/nerdctl/system/system_info_test.go rename to cmd/nerdctl/system/info_test.go diff --git a/cmd/nerdctl/system/system_prune.go b/cmd/nerdctl/system/prune.go similarity index 100% rename from cmd/nerdctl/system/system_prune.go rename to cmd/nerdctl/system/prune.go diff --git a/cmd/nerdctl/system/system_prune_linux_test.go b/cmd/nerdctl/system/prune_linux_test.go similarity index 100% rename from cmd/nerdctl/system/system_prune_linux_test.go rename to cmd/nerdctl/system/prune_linux_test.go diff --git a/cmd/nerdctl/volume/volume.go b/cmd/nerdctl/volume/command.go similarity index 100% rename from cmd/nerdctl/volume/volume.go rename to cmd/nerdctl/volume/command.go diff --git a/cmd/nerdctl/volume/volume_test.go b/cmd/nerdctl/volume/command_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_test.go rename to cmd/nerdctl/volume/command_test.go diff --git a/cmd/nerdctl/volume/volume_create.go b/cmd/nerdctl/volume/create.go similarity index 100% rename from cmd/nerdctl/volume/volume_create.go rename to cmd/nerdctl/volume/create.go diff --git a/cmd/nerdctl/volume/volume_create_test.go b/cmd/nerdctl/volume/create_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_create_test.go rename to cmd/nerdctl/volume/create_test.go diff --git a/cmd/nerdctl/volume/volume_inspect.go b/cmd/nerdctl/volume/inspect.go similarity index 100% rename from cmd/nerdctl/volume/volume_inspect.go rename to cmd/nerdctl/volume/inspect.go diff --git a/cmd/nerdctl/volume/volume_inspect_test.go b/cmd/nerdctl/volume/inspect_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_inspect_test.go rename to cmd/nerdctl/volume/inspect_test.go diff --git a/cmd/nerdctl/volume/volume_list.go b/cmd/nerdctl/volume/list.go similarity index 100% rename from cmd/nerdctl/volume/volume_list.go rename to cmd/nerdctl/volume/list.go diff --git a/cmd/nerdctl/volume/volume_list_test.go b/cmd/nerdctl/volume/list_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_list_test.go rename to cmd/nerdctl/volume/list_test.go diff --git a/cmd/nerdctl/volume/volume_namespace_test.go b/cmd/nerdctl/volume/namespace_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_namespace_test.go rename to cmd/nerdctl/volume/namespace_test.go diff --git a/cmd/nerdctl/volume/volume_prune.go b/cmd/nerdctl/volume/prune.go similarity index 100% rename from cmd/nerdctl/volume/volume_prune.go rename to cmd/nerdctl/volume/prune.go diff --git a/cmd/nerdctl/volume/volume_prune_linux_test.go b/cmd/nerdctl/volume/prune_linux_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_prune_linux_test.go rename to cmd/nerdctl/volume/prune_linux_test.go diff --git a/cmd/nerdctl/volume/volume_remove.go b/cmd/nerdctl/volume/remove.go similarity index 100% rename from cmd/nerdctl/volume/volume_remove.go rename to cmd/nerdctl/volume/remove.go diff --git a/cmd/nerdctl/volume/volume_remove_linux_test.go b/cmd/nerdctl/volume/remove_linux_test.go similarity index 100% rename from cmd/nerdctl/volume/volume_remove_linux_test.go rename to cmd/nerdctl/volume/remove_linux_test.go