invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.11k stars 198 forks source link

can melos parse args like bash , some_script.sh $1 $2 #620

Closed philos3 closed 6 months ago

philos3 commented 8 months ago

Is there an existing issue for this?

Version

3.3.0

Description

melos run args only work with single command in single line scripts

it work fine in single line and the args is in the end

  check-bbj:
    run: cd component/bbj_flutter && git checkout $1

However, it fail when the args is in the middle

  check-bbj:
    run: cd component/bbj_flutter && git checkout $1  &&  git pull

image

furthermore , it also fail when using a multi-line

  check-bbj:
    run: |
      cd component/bbj_flutter
      git checkout $1

image

Steps to reproduce

As mentioned above

Expected behavior

can melos parse args like bash , we call pase args correct

as : some_script.sh $1 $2

Screenshots

No response

Additional context and comments

No response

spydon commented 8 months ago

The multi-line issue is already tracked in #232