Skip to content

Commit 02d37ca

Browse files
committed
address comment
1 parent e3e0282 commit 02d37ca

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

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

1313
## Usage
1414

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

1717
* Instead of passing `--token` you can set `FLUTTERFLOW_API_TOKEN` environment variable.
1818
* Instead of passing `--project` you can set `FLUTTERFLOW_PROJECT` environment variable.
@@ -28,7 +28,7 @@ API access is available only to users with active subscriptions. Visit https://a
2828
| `--branch-name` | `-b` | [Optional] Which branch to download. Defaults to `main`. |
2929
| `--[no-]fix` | None | [Optional] Whether to run `dart fix` on the downloaded code. Defaults to `false`. |
3030
| `--[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`. |
31-
| `--as-module` | None | [Optional] Whether to generate the project as a Flutter module |
31+
| `--[no-]as-module` | None | [Optional] Whether to generate the project as a Flutter module |
3232

3333
## Issues
3434

bin/flutterflow_cli.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ ArgResults _parseArgs(List<String> args) {
8383
)
8484
..addFlag(
8585
'as-module',
86+
negatable: true,
8687
help: 'Generate the project as a Flutter module.',
88+
defaultsTo: false,
8789
);
8890

8991
final parser = ArgParser()

lib/src/flutterflow_cli_base.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Future<String?> exportCode({
5757
required bool includeAssets,
5858
required bool unzipToParentFolder,
5959
required bool fix,
60-
required exportAsModule,
60+
required bool exportAsModule,
6161
String? branchName,
6262
}) async {
6363
final endpointUrl = Uri.parse(endpoint);

0 commit comments

Comments
 (0)