Skip to main content

workspace_at_each

Function workspace_at_each 

Source
pub fn workspace_at_each(
    input: &Path,
    each: bool,
) -> Result<Option<Result<Workspace, ProjectPathsError>>, String>
Expand description

#3274: workspace_at, or, with each, the workspace --each stands for:

  • a real workspace root is itself (the flag changes nothing there);
  • a manifest-less directory with no bynk.toml above it is the implicit workspace of its immediate-subdirectory projects, with a note for each manifest-less subdirectory holding .bynk files;
  • anything else (a file, a project, a directory inside a project, a directory with no project directly below it, or one with .bynk files of its own) is refused with a message, so the flag never quietly does nothing.

The Err is the message, without a command prefix.