Skip to content

Commit 6fce91e

Browse files
branchseerclaude
andcommitted
refactor: make PackageQueryArgs fields private
Remove `pub` from all fields. External crates interact only through `#[clap(flatten)]` (parsing) and `into_package_query()` (conversion). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8d72ff4 commit 6fce91e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/vite_workspace/src/package_filter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,19 @@ pub enum PackageQueryError {
215215
pub struct PackageQueryArgs {
216216
/// Run tasks found in all packages in the workspace, in topological order based on package dependencies.
217217
#[clap(default_value = "false", short, long)]
218-
pub recursive: bool,
218+
recursive: bool,
219219

220220
/// Run tasks found in the current package and all its transitive dependencies, in topological order based on package dependencies.
221221
#[clap(default_value = "false", short, long)]
222-
pub transitive: bool,
222+
transitive: bool,
223223

224224
/// Run task in the workspace root package.
225225
#[clap(default_value = "false", short = 'w', long = "workspace-root")]
226-
pub workspace_root: bool,
226+
workspace_root: bool,
227227

228228
/// Filter packages (pnpm --filter syntax). Can be specified multiple times.
229229
#[clap(short = 'F', long, num_args = 1)]
230-
pub filter: Vec<Str>,
230+
filter: Vec<Str>,
231231
}
232232

233233
impl PackageQueryArgs {

0 commit comments

Comments
 (0)