node-machine / machinepack

Command-line tool for working with machinepacks and machines.
http://node-machine.org/implementing
14 stars 3 forks source link

"To Run Again" presents wrong command #1

Open randallmeeker opened 9 years ago

randallmeeker commented 9 years ago

The cli tools prompts you to use single quotes around command line parameters. These are escaped

You can follow based on this console below:

C:\inetpub\wwwroot\machinepacks\machinepack-idme>machinepack exec say-hello            

 Running machine...                                                                    

? Please enter the name of the person that will be sent the hello message.             
name:  Randall                                                                         
Hello Randall, your secret code is 0.9724390022456646                                  
________________________________________________________________˛                      

   Idme.sayHello()                                                                     

   » name "Randall"                                                                    

________________________________________________________________¸                      
  |                                                                                    
  •                                                                                    
  The machine triggered its success exit and returned a value:                         
   { numLettersInName: 7, secretCode: '0.9724390022456646' }                           

 To run again:                                                                         
 machinepack exec say-hello --name='Randall'                                           

C:\inetpub\wwwroot\machinepacks\machinepack-idme>machinepack exec say-hello --name='Ran
dall'                                                                                  

 Running machine...                                                                    

Hello 'Randall', your secret code is 0.881347771268338                                 
________________________________________________________________˛                      

   Idme.sayHello()                                                                     

   » name "'Randall'"                                                                  

________________________________________________________________¸                      
  |                                                                                    
  •                                                                                    
  The machine triggered its success exit and returned a value:                         
   { numLettersInName: 9, secretCode: '0.881347771268338' }                            

 To run again:                                                                         
 machinepack exec say-hello --name=''\''Randall'\'''