Content-Length: 281176 | pFad | http://github.com/flutter/flutter/issues/131395

C7 [flutter cli] flutter clean should support a --directory option like flutter pub get does · Issue #131395 · flutter/flutter · GitHub
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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/flutter/flutter/issues/131395

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy