Skip to content

Instantly share code, notes, and snippets.

@rubinlinux
Created January 4, 2023 19:15
Show Gist options
  • Save rubinlinux/64af990e516c118495ed5ca0d1f1d77f to your computer and use it in GitHub Desktop.
Save rubinlinux/64af990e516c118495ed5ca0d1f1d77f to your computer and use it in GitHub Desktop.
+ "scripts": {
+ "foo": "ls",
#by itself the command works
$ composer foo
> ls
app ...
#it accepts arguments ok, as long as they are not composer arguments
$ composer foo -- -l
> ls '-l'
total 512
drwxrwxr-x 9 rubin rubin 4096 Dec 20 15:17 app
# ls -d shows directories only, instead composer is expecting a working directory argument
$ composer foo -- -d
[RuntimeException]
Invalid working directory specified, does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment