dotcloud/dotcloud-cli — pull request #52 by andresriancho (2013-12-31 11:57:54+00:00)
Title: Adding assume yes and assume no options.

Added `assume-yes` and `--assume-no` to the CLI options. This is very useful for calling the dotcloud script in an automated way.

`--assume-yes` demo, the Y is added in an automated way:

```console
andres@ws:~/PycharmProjects/dotcloud-cli$ dotcloud --assume-yes create fooas
==> Creating a live application named "fooas"
==> Application "fooas" created.
Connect the current directory to "fooas"? [Y/n]: Y
==> Connecting with the application "fooas"
==> Connected with default push options: --rsync
```

`--assume-no` demo, the N is added in an automated way:
```console
andres@ws:~/PycharmProjects/dotcloud-cli$ dotcloud --assume-no create fooassd
==> Creating a live application named "fooassd"
==> Application "fooassd" created.
Connect the current directory to "fooassd"? [Y/n]: N
```

Regression test, we can still answer manually if no parameter is passed:
```console
andres@ws:~/PycharmProjects/dotcloud-cli$ dotcloud create fooassdasd
==> Creating a live application named "fooassdasd"
==> Application "fooassdasd" created.
Connect the current directory to "fooassdasd"? [Y/n]: n
```