pub fn tasks_with_command(&self, pkg_graph: &PackageGraph) -> Vec<String> {
        self.tasks()
            .filter_map(|node| match node {
                TaskNode::Root => None,
                TaskNode::Task(task) => Some(task),
            })
            .filter_map(|task| {
                let pkg_name = PackageName::from(task.package());
                let json = pkg_graph.package_json(&pkg_name)?;
                // TODO: delegate to command factory to filter down tasks to those that will
                // have a runnable command.
                (task.task() == "proxy" || json.command(task.task()).is_some())
                    .then(|| task.to_string())
            })
            .collect()
    }
Return all tasks that have a command to be run
crates/turborepo-lib/src/engine/mod.rs