-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does text in echo / dump / write / check steps require quotes? #242
Comments
The various TagUI steps by default expect context to be text instead of variables, to let scripts be more human-language-like. However, for some steps (echo, dump, write, check), the context by default is variable. This is because these steps are normally used for dealing with variables. To make the default context text would mean additional effort when writing scripts using these steps. But to make default context variable, would mean these steps behave differently from most other TagUI steps. To review whether it makes sense to adjust the default context of these steps to be like the other TagUI steps, and whether it can be done with backward compatibility. current way
for evaluation
|
thoughts after reviewing For dump and write steps, it is easier to simply provide variable name instead of having to put ``. For echo step, there isn't a way to implement this without breaking backward compatibility. Because something simple like echo name cannot be automatically parsed to determine if it is referring to a variable or a text and then handle it accordingly. In theory can try and catch for error, but complication comes in when trying to echo text and repository / datatable. The new complexity will affect reliability in exchange for a more streamline syntax when scripting. Decision made for now is to drop this move that will break backward compatibility. |
Hey @kensoh! Nice to see you! I downloaded the latest version of TagUI (6.0.0). But when I print a text using a variable using the latest syntax it's giving me error. |
The latest syntax I am using is: echo message-to-print |
On variable-name I am using backtick opertors to enclose it like |
Hi @Hassan-Ali123 yes what you write is correct. Can you share what is the minimum simple script you have that can replicate the problem? Make sure that you are running TagUI v6. If you type For example, below sample script
Will give the following run output on my v6
|
So you mean the message to print should be written in double quotes or backtick characters??
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Ken Soh <[email protected]>
Sent: Monday, May 4, 2020 10:08:42 PM
To: kelaberetiv/TagUI <[email protected]>
Cc: Hassan Ali <[email protected]>; Mention <[email protected]>
Subject: Re: [kelaberetiv/TagUI] Why does text in echo / dump / write / check steps require quotes? (#242)
Hi @Hassan-Ali123<https://github.com/Hassan-Ali123> yes what you write is correct. Can you share what is the minimum simple script you have that can replicate the problem? Make sure that you are running TagUI v6. If you type tagui without any parameters it should show version as v6. In case somehow the old version is running.
For example, below sample script
a = '2'
echo 1 `a` 3
Will give the following run output on my v6
1 2 3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#242 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGETE4YRF6Q72UDDJEUIBTRP3ZBVANCNFSM4FKEP7QQ>.
|
For echo step, message no need quotes in v6 and variables need backticks in v6 - See more info - https://github.com/kelaberetiv/TagUI#echo-dump-write-steps |
Thanks so much
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Ken Soh <[email protected]>
Sent: Thursday, May 21, 2020 9:21:17 PM
To: kelaberetiv/TagUI <[email protected]>
Cc: Hassan Ali <[email protected]>; Mention <[email protected]>
Subject: Re: [kelaberetiv/TagUI] Why does text in echo / dump / write / check steps require quotes? (#242)
For echo step, message no need quotes in v6 and variables need backticks in v6 -
See more info - https://github.com/kelaberetiv/TagUI#echo-dump-write-steps
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#242 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJGETE3PCH4L5PNWJJBY6QDRSVIH3ANCNFSM4FKEP7QQ>.
|
This issue adds on to #241 where `variable` can be used instead of '+variable+' to denote variables where text is expected.
The text was updated successfully, but these errors were encountered: