Skip to content

Conversation

luanpotter
Copy link
Member

This partially solves #12

Before this the extra-packages parameters was misconfigured making it impossible to specify multiple extra packages, and at the same time causing issues on deserialization:

Unhandled exception:
type 'String' is not a subtype of type 'List<String>?' in type cast
#0      getMultiOption (package:ignite_cli/utils.dart:86:29)
#1      createCommand (package:ignite_cli/commands/create_command.dart:54:25)
#2      mainCommand (package:ignite_cli/main.dart:73:11)
<asynchronous suspension>

Now this is fixed; note that if you don't specify --interactive=false it will still be waiting on this step to allow for more selections (but the specified options via arg will be pre-selected instead of the default).

ignite create --name=test --org=org.system32uwu.games --create-folder=true --flame-version=1.8.0 --extra-packages=flame_audio --extra-packages=flame_svg --template=example --interactive=false

Base automatically changed from luan.update-libs to main April 14, 2025 08:54
@luanpotter luanpotter changed the title fix: Fix extra-packages CLI parameters to be multi-option [stacked onto luan.update-libs] fix: Fix extra-packages CLI parameters to be multi-option Apr 14, 2025
Co-authored-by: Lukas Klingsbo <[email protected]>
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice!

@luanpotter luanpotter merged commit 1eb81b8 into main Apr 14, 2025
2 checks passed
@luanpotter luanpotter deleted the luan.fix-12 branch April 14, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants