Skip to content

Import or support multiple scripts? #78

@sonjz

Description

@sonjz

Looking if the following is supported or possible enhancement.

Looking for ability to organize groups of scripts, for me I have a different set for local packages than for the main flutter app, but most are the same.

One approach is allow mu

# in your pubspec.yaml
# instead of
scripts: scripts.yaml

# multiple
scripts:
  - scripts/flutter.yaml
  - scripts/package.yaml
  - scripts/build.yaml

Other approach is similar to ansible, have an import in your scripts.yaml

# your scripts.yaml
_import: flutter.yaml
_import: package.yaml
_import: build.yaml

custom:
  cmd: echo 1

(More complex approach is allow _import to be nested under any node)

Could be a simple yaml merge that yells if there is a duplicate node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions