English 中文(简体)
在一个名录中,对每个项目的“全色”指挥
原标题:Run `flutter clean` command on each project in a directory

作为一个挥发性开发商,我一直致力于许多项目。 我不得不偶尔就所有这些议题开展工作。 现在,这些项目属于我驾驶的30+GB的单一名录。 删除该项目的建筑海滩以拯救某些空间是一个好的想法。 因此,我倾向于在每张纸张上写出一份将穿过每一个纸张的文字,并操作flutter Clean,而不是根据每个项目的根基人工操作指挥。

在“谷歌”和“StackOverflow”搜索后,我收到了以下指挥:

for /D %G in ("D:My Projects*”) do flutter Clean “%~fG”

这支指挥部对以下几方面执行冲洗的清洁指挥:

C:Usersvipin>flutter clean "D:MyProjectsProject1"
C:Usersvipin>flutter clean "D:MyProjectsProject2"
C:Usersvipin>flutter clean "D:MyProjectsProject3"
C:Usersvipin>flutter clean "D:MyProjectsProject4"

这一点本来应当发挥作用,因为各指挥国按其所研究的顺序操作flutter Clean。 不幸的是,这 t了错误:

C:Usersvipin>flutter clean "D:MyProjectsProject1"
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.

C:Usersvipin>flutter clean "D:MyProjectsProject2"
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.

C:Usersvipin>flutter clean "D:MyProjectsProject3"
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.

C:Usersvipin>flutter clean "D:MyProjectsProject4"
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
...

共和国。 各个文件夹中都有Yaml文档,我估计,的指令要求你迅速点到SROOT项目,如下文所示:

D:MyprojectsProject1>flutter clean

现在,我looking想的是指挥/描述,任何事情都是为了把指挥推向每个项目的根源和执行指挥。

最佳回答

您询问。 我对我的项目清单持同样的想法。 下面的指挥完全是你期望的。 保证从D:My Project中操作

for /d %i in (D:Myprojects*) do (cd “%i” & flutter Clean >

问题回答

如果有的话,有人正在寻找MacOs /lav。 文本:

for dir in ~/dev/* ; do (cd "$dir" && flutter clean ); done

<>m>note: change the main path for their porject than ~/dev andlease the /* at the end of it

I.在我的Ma:上照此办理。

可以通过在Mac的终点站使用<代码>find和xargs的指令来做到这一点。 这里,你如何操作<代码>面粉净,每个次子指令,具体目录如下:

  1. 开放终点站。 你们可以在申请的夹中发现它。

  2. 填写具体目录,请填写<代码>面粉全净。 例如,如果您的名录位于/path/to/your/directory,则您的类型如下:

    cd /path/to/your/directory
    
  3. 一俟你重新执政,指挥如下:

    find . -maxdepth 1 -mindepth 1 -type d -exec sh -c  (cd "{}" && echo "Cleaning in $(pwd)" && flutter clean)  ;
    

    让我们打破这一指挥:

    • find .: Searches for files and directories starting from the current directory (.).
    • -maxdepth 1: Restricts the search to only the immediate subdirectories (depth level 1).
    • -mindepth 1: Excludes the current directory itself from the search.
    • -type d: Specifies that only directories should be considered.
    • -exec sh -c ... ;: Executes the specified shell command (sh -c ... ) for each found directory.
  4. 进入指挥系统。

该指挥部将在指定目录的每个子行内执行<条码>面粉末/条码”,为这些分行内的每个波堤项目提供一个清洁的建筑环境。





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签