Skip to content

"To Run Again" presents wrong command #1

@randallmeeker

Description

@randallmeeker

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'\'''                                   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions