melos icon indicating copy to clipboard operation
melos copied to clipboard

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

Open philos3 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

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

philos3 avatar Dec 22 '23 12:12 philos3

The multi-line issue is already tracked in #232

spydon avatar Dec 22 '23 15:12 spydon