craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

Add site argument for `remove` command #320

Closed mattstein closed 3 years ago

mattstein commented 3 years ago

Description

This makes it possible to skip the site prompt by passing an argument to nitro remove, consistent with other site-specific commands in the upcoming release.

Before

Argument still shows site prompt:

❯ nitro remove test.nitro
Select a site:
  1. craftcms.nitro
  2. europa.nitro
  3. starterblog.nitro
  4. test.nitro
  5. tutorial.nitro

After

Argument skips questioning. 😎

❯ nitro remove test.nitro
Removing test.nitro
mattstein commented 3 years ago

Err, actually it works fine but displays the wrong hostname for Removing *.nitro. Gotta fix that.

mattstein commented 3 years ago

We’re good again. Turns out simple derps translate into any programming language.