Skip to content

Commit c3b0ced

Browse files
authored
Add a new argument as-debug to be able to export the project with debug logging enabled (#22)
1 parent 0d2aa39 commit c3b0ced

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ API access is available only to users with active subscriptions. Visit https://a
1414

1515
### Usage
1616

17-
`flutterflow export-code --project <project id> --dest <output folder> --[no-]include-assets --token <token> --[no-]fix --[no-]parent-folder --[no-]as-module`
17+
`flutterflow export-code --project <project id> --dest <output folder> --[no-]include-assets --token <token> --[no-]fix --[no-]parent-folder --[no-]as-module --[no-]as-debug`
1818

1919
* Instead of passing `--token` you can set `FLUTTERFLOW_API_TOKEN` environment variable.
2020
* Instead of passing `--project` you can set `FLUTTERFLOW_PROJECT` environment variable.
@@ -30,7 +30,8 @@ API access is available only to users with active subscriptions. Visit https://a
3030
| `--branch-name` | `-b` | [Optional] Which branch to download. Defaults to `main`. |
3131
| `--[no-]fix` | None | [Optional] Whether to run `dart fix` on the downloaded code. Defaults to `false`. |
3232
| `--[no-]parent-folder` | None | [Optional] Whether to download code into a project-named sub-folder. If true, downloads all project files directly to the specified directory. Defaults to `true`. |
33-
| `--[no-]as-module` | None | [Optional] Whether to generate the project as a Flutter module |
33+
| `--[no-]as-module` | None | [Optional] Whether to generate the project as a Flutter module. Defaults to `false`. |
34+
| `--[no-]as-debug` | None | [Optional] Whether to generate the project with debug logging to be able to use FlutterFlow Debug Panel inside the DevTools. Defaults to `false`. |
3435

3536
## Deploy Firebase
3637

bin/flutterflow_cli.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ void main(List<String> args) async {
5757
unzipToParentFolder: parsedArguments.command!['parent-folder'],
5858
fix: parsedArguments.command!['fix'],
5959
exportAsModule: parsedArguments.command!['as-module'],
60+
exportAsDebug: parsedArguments.command!['as-debug'],
6061
);
6162
break;
6263
case 'deploy-firebase':
@@ -122,6 +123,13 @@ ArgResults _parseArgs(List<String> args) {
122123
negatable: true,
123124
help: 'Generate the project as a Flutter module.',
124125
defaultsTo: false,
126+
)
127+
..addFlag(
128+
'as-debug',
129+
negatable: true,
130+
help: 'Generate the project with debug logging to be able to use'
131+
'FlutterFlow Debug Panel inside the DevTools.',
132+
defaultsTo: false,
125133
);
126134

127135
final firebaseDeployCommandParser = ArgParser()

0 commit comments

Comments
 (0)