|
Android-cuttlefish cvd tool
|
#include "cuttlefish/host/commands/cvd/cli/commands/create.h"#include <errno.h>#include <fmt/core.h>#include <fmt/format.h>#include <stddef.h>#include <algorithm>#include <cctype>#include <cstdlib>#include <cstring>#include <limits>#include <memory>#include <optional>#include <sstream>#include <string>#include <unordered_map>#include <utility>#include <vector>#include "absl/log/log.h"#include "absl/strings/match.h"#include "absl/strings/str_join.h"#include "absl/strings/str_split.h"#include "cuttlefish/common/libs/utils/contains.h"#include "cuttlefish/common/libs/utils/environment.h"#include "cuttlefish/common/libs/utils/files.h"#include "cuttlefish/common/libs/utils/users.h"#include "cuttlefish/files/copy.h"#include "cuttlefish/files/directory_exists.h"#include "cuttlefish/files/file_exists.h"#include "cuttlefish/files/recursively_remove_directory.h"#include "cuttlefish/flag_parser/flag.h"#include "cuttlefish/flag_parser/gflags_compat.h"#include "cuttlefish/host/commands/cvd/cli/command_request.h"#include "cuttlefish/host/commands/cvd/cli/commands/command_handler.h"#include "cuttlefish/host/commands/cvd/cli/commands/host_tool_target.h"#include "cuttlefish/host/commands/cvd/cli/commands/load_configs.h"#include "cuttlefish/host/commands/cvd/cli/commands/start.h"#include "cuttlefish/host/commands/cvd/cli/help_format.h"#include "cuttlefish/host/commands/cvd/cli/selector/creation_analyzer.h"#include "cuttlefish/host/commands/cvd/cli/selector/num_instances_parser.h"#include "cuttlefish/host/commands/cvd/cli/selector/selector.h"#include "cuttlefish/host/commands/cvd/cli/selector/selector_common_parser.h"#include "cuttlefish/host/commands/cvd/cli/selector/selector_constants.h"#include "cuttlefish/host/commands/cvd/cli/utils.h"#include "cuttlefish/host/commands/cvd/instances/cvd_persistent_data.pb.h"#include "cuttlefish/host/commands/cvd/instances/instance_manager.h"#include "cuttlefish/host/commands/cvd/instances/local_instance_group.h"#include "cuttlefish/host/commands/cvd/utils/common.h"#include "cuttlefish/posix/realpath.h"#include "cuttlefish/posix/remove.h"#include "cuttlefish/posix/strerror.h"#include "cuttlefish/posix/symlink.h"#include "cuttlefish/result/result.h"Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{create.cpp} |
Functions | |
| std::string | cuttlefish::anonymous_namespace{create.cpp}::DefaultHostPath (const std::unordered_map< std::string, std::string > &envs) |
| std::string | cuttlefish::anonymous_namespace{create.cpp}::DefaultProductPath (const std::unordered_map< std::string, std::string > &envs) |
| Result< CommandRequest > | cuttlefish::anonymous_namespace{create.cpp}::CreateLoadCommand (const CommandRequest &request, std::vector< std::string > &args, const std::string &config_file) |
| Result< CommandRequest > | cuttlefish::anonymous_namespace{create.cpp}::CreateStartCommand (const LocalInstanceGroup &group, const std::vector< std::string > &args, const std::unordered_map< std::string, std::string > &envs) |
| Result< void > | cuttlefish::anonymous_namespace{create.cpp}::StartGroup (const LocalInstanceGroup &group, const std::vector< std::string > &subcmd_args, const std::unordered_map< std::string, std::string > &envs, InstanceManager &instance_manager) |
| Result< std::unordered_map< std::string, std::string > > | cuttlefish::anonymous_namespace{create.cpp}::GetEnvs (const CommandRequest &request) |
| Result< void > | cuttlefish::anonymous_namespace{create.cpp}::EnsureSymlink (const std::string &target, const std::string link) |
| Result< bool > | cuttlefish::anonymous_namespace{create.cpp}::IsDefaultGroup (const CommandRequest &request) |
| Result< void > | cuttlefish::anonymous_namespace{create.cpp}::CreateSymlinks (const LocalInstanceGroup &group) |
| std::vector< Flag > | cuttlefish::anonymous_namespace{create.cpp}::BuildSelectorFlagsForCreateHelp (const selector::SelectorOptions &selectors) |
| bool | cuttlefish::anonymous_namespace{create.cpp}::IsDeviceRunning (const LocalInstanceGroup &group) |
| Result< bool > | cuttlefish::anonymous_namespace{create.cpp}::MatchPaths (const LocalInstanceGroup &group, const std::string &target_host, const std::vector< std::string > &target_products) |
Variables | |
| constexpr char | cuttlefish::anonymous_namespace{create.cpp}::kSummaryHelpText [] = "Create a Cuttlefish instance group" |