Skip to content

[flutter cli] flutter clean should support a --directory option like flutter pub get does #131395

@jubnl

Description

@jubnl

Is there an existing issue for this?

Use case

I'm doing a setup script for other devs in my teams to help them setup/build/rebuild some nested flutter projects in local. For that I'm using a SH script as follows :

#!/bin/sh

flutter clean
cd ./some/dir/ || exit
flutter clean

cd ../.. || exit
flutter pub get --directory=.
flutter pub get --directory=./some/dir
dart run build_runner build --delete-conflicting-outputs

Could you please implement a --directory option directly in flutter clean to improve consistency between flutter cli commands ?

Proposal

#!/bin/sh

flutter clean --directory=./some/dir  # working directory for the flutter clean command

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterr: invalidIssue is closed as not validteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy