Skip to content

Commit bbfd85e

Browse files
committed
Extract status from //cuttlefish/host/commands/cvd/cli/commands:leaf_commands
https://bazel.build/docs/bazel-and-cpp
1 parent 31da34b commit bbfd85e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ cc_library(
109109
"//cuttlefish/host/commands/cvd/cli/commands:restart",
110110
"//cuttlefish/host/commands/cvd/cli/commands:snapshot",
111111
"//cuttlefish/host/commands/cvd/cli/commands:start",
112+
"//cuttlefish/host/commands/cvd/cli/commands:status",
112113
"//cuttlefish/host/commands/cvd/cli/parser",
113114
"//cuttlefish/host/commands/cvd/cli/selector:parser",
114115
"//cuttlefish/host/commands/cvd/cli:types",

base/cvd/cuttlefish/host/commands/cvd/cli/commands/BUILD.bazel

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,17 +478,38 @@ clang_tidy_test(
478478
tags = ["clang_tidy", "clang-tidy"],
479479
)
480480

481+
cc_library(
482+
name = "status",
483+
srcs = ["status.cpp"],
484+
hdrs = ["status.h"],
485+
deps = [
486+
"//cuttlefish/common/libs/utils",
487+
"//cuttlefish/common/libs/utils:result",
488+
"//cuttlefish/host/commands/cvd/cli/commands:command_handler",
489+
"//cuttlefish/host/commands/cvd/cli/selector",
490+
"//cuttlefish/host/commands/cvd/cli:types",
491+
"//cuttlefish/host/commands/cvd/cli:utils",
492+
"//cuttlefish/host/commands/cvd/instances",
493+
"//cuttlefish/host/libs/config",
494+
"//libbase",
495+
],
496+
)
497+
498+
clang_tidy_test(
499+
name = "status_clang_tidy",
500+
srcs = [":status"],
501+
tags = ["clang_tidy", "clang-tidy"],
502+
)
503+
481504
# Leaf commands: commands that don't execute other commands
482505
cc_library(
483506
name = "leaf_commands",
484507
srcs = [
485-
"status.cpp",
486508
"stop.cpp",
487509
"try_acloud.cpp",
488510
"version.cpp",
489511
],
490512
hdrs = [
491-
"status.h",
492513
"stop.h",
493514
"try_acloud.h",
494515
"version.h",

0 commit comments

Comments
 (0)