lando / docs

The main docs site for Lando
https://docs.lando.dev/
GNU General Public License v3.0
20 stars 57 forks source link

CLI value types #240

Open com2 opened 1 year ago

com2 commented 1 year ago

I need to rebuild a number of services but not all. In lando rebuild --help it gives for --service the option value type [array]:

--service, -s Rebuild only the specified services [array]

but I had no idea what that means nor did I see an example. I tried: lando rebuild -s appserver,pma,mailhog but it was seen as one string. It took me a while but then I remembered how a bash array is written and tried: lando rebuild -s {appserver,pma,mailhog} That worked. May be you could add an example of this in lando build Documentation or dedicate a page that define these types?

pirog commented 1 year ago

@com2 good idea, the actual usage for an array is you pass the flag in multiple times, eg lando rebuild -s service1 -s service2