[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Add New Feature: expect object
From: |
Jasper van den Bosch |
Subject: |
Re: [Fab-user] Add New Feature: expect object |
Date: |
Mon, 5 Nov 2012 13:56:28 +0100 |
I understand the confusion, I failed to explain well in my last email.
Fabric prompt is about asking the operator of the fabric script for some variable. We create the prompt ourselves.
Fexpect is about the fabric script reacting to an existing prompt in a command that we want to run. For instance, if the remote command is `rm -i` it will ask for confirmation. A more common use-case is the installation of upgrades, which sometimes ask for permission to overwrite configuration files.
So in your example;
answer = prompt('Specify favorite dish: ', default='spam & eggs')
'Specify favorite dish' is something the remote command, that we cannot change, asks.
I hope this is more clear now.
Jasper
- [Fab-user] Add New Feature: expect object, lirudy, 2012/11/02
- Re: [Fab-user] Add New Feature: expect object, Herman Schistad, 2012/11/02
- Re: [Fab-user] Add New Feature: expect object, lirudy, 2012/11/02
- Re: [Fab-user] Add New Feature: expect object, Jasper van den Bosch, 2012/11/02
- Re: [Fab-user] Add New Feature: expect object, lirudy, 2012/11/04
- Re: [Fab-user] Add New Feature: expect object, Herman Schistad, 2012/11/05
- Re: [Fab-user] Add New Feature: expect object, Jasper van den Bosch, 2012/11/05
- Re: [Fab-user] Add New Feature: expect object, Herman Schistad, 2012/11/05
- Re: [Fab-user] Add New Feature: expect object,
Jasper van den Bosch <=