aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/search.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-10 00:32:08 +0900
committernsfisis <nsfisis@gmail.com>2026-05-10 00:32:08 +0900
commit8cc1ba8a02c0318b65658f1634de378c780392b9 (patch)
treefdd5cb61e488018891a486b25991b87c84220bb8 /crates/mozart/src/commands/search.rs
parent72b2e877c01e67ba7edd37e34ac2eadb7a1c62c4 (diff)
downloadphp-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.gz
php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.zst
php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.zip
refactor(workspace): consolidate crates into mozart-core
Merged mozart-archiver, mozart-autoload, mozart-registry, mozart-sat-resolver, and mozart-vcs into mozart-core to align the source layout with Composer's structure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/search.rs')
-rw-r--r--crates/mozart/src/commands/search.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/mozart/src/commands/search.rs b/crates/mozart/src/commands/search.rs
index 14d50dd..a5ab04a 100644
--- a/crates/mozart/src/commands/search.rs
+++ b/crates/mozart/src/commands/search.rs
@@ -2,8 +2,8 @@ use clap::Args;
use mozart_core::console::{Console, hyperlink};
use mozart_core::console_format;
use mozart_core::console_writeln;
-use mozart_registry::packagist::SearchResult;
-use mozart_registry::repository::{RepositorySet, SearchMode};
+use mozart_core::repository::packagist::SearchResult;
+use mozart_core::repository::repository::{RepositorySet, SearchMode};
use serde::Serialize;
/// JSON output structure matching Composer's search result schema.
@@ -111,8 +111,8 @@ pub async fn execute(args: &SearchArgs, cli: &super::Cli, console: &Console) ->
// 5. Build the repository set. Configured remote repositories from
// `composer.json` are not yet wired up; this is a known divergence
// from Composer's full `CompositeRepository`.
- let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache);
- let repo_cache = mozart_registry::cache::Cache::repo(&cache_config);
+ let cache_config = mozart_core::repository::cache::build_cache_config(cli.no_cache);
+ let repo_cache = mozart_core::repository::cache::Cache::repo(&cache_config);
let repos = RepositorySet::with_packagist(repo_cache);
// 6. Dispatch.
@@ -199,7 +199,7 @@ mod tests {
#[test]
fn test_parse_search_response() {
- use mozart_registry::packagist::SearchResponse;
+ use mozart_core::repository::packagist::SearchResponse;
let json = r#"{
"results": [
@@ -245,7 +245,7 @@ mod tests {
#[test]
fn test_parse_search_response_with_abandoned() {
- use mozart_registry::packagist::SearchResponse;
+ use mozart_core::repository::packagist::SearchResponse;
let json = r#"{
"results": [
@@ -288,7 +288,7 @@ mod tests {
#[test]
fn test_parse_search_response_with_next() {
- use mozart_registry::packagist::SearchResponse;
+ use mozart_core::repository::packagist::SearchResponse;
let json = r#"{
"results": [],