feat(package,daemon): yank releases from the CLI; report workspace and lockfile in info
This commit is contained in:
1 parent
f5eb489e79
commit
1a4c062021
11 files changed
+249
-20
No files matched your search
+10
-4
@@ -2118,10 +2118,16 @@ DaemonServer::Impl::DispatchResult DaemonServer::Impl::dispatch(std::string_view
|
||||
object.emplace("backends", JsonValue{std::move(backends)});
|
||||
object.emplace("project_root", JsonValue{options.project_root.string()});
|
||||
object.emplace("build_root", JsonValue{options.build_root.string()});
|
||||
object.emplace(
|
||||
"lock_root",
|
||||
JsonValue{
|
||||
(options.lock_root.empty() ? options.project_root : options.lock_root).string()});
|
||||
const auto lock_root = options.lock_root.empty() ? options.project_root : options.lock_root;
|
||||
object.emplace("lock_root", JsonValue{lock_root.string()});
|
||||
object.emplace("workspace", JsonValue{Config::is_workspace_root(options.project_root)});
|
||||
const auto lockfile_path = lock_root / "vbs.lock";
|
||||
std::error_code lockfile_ec;
|
||||
JsonValue::Object lockfile;
|
||||
lockfile.emplace("path", JsonValue{lockfile_path.string()});
|
||||
lockfile.emplace("exists",
|
||||
JsonValue{std::filesystem::is_regular_file(lockfile_path, lockfile_ec)});
|
||||
object.emplace("lockfile", JsonValue{std::move(lockfile)});
|
||||
object.emplace("socket", JsonValue{socket_path.string()});
|
||||
return {serialize_response(JsonValue{std::move(object)}), false};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user