You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cat function in the DRP shell is used to retrieve data, but it also triggers the execution of functions which mimic directories. The problem is that cat also triggers functions which cause change. Need to come up with a way to differentiate between functions which mimic directories and those which do not. If a function capable of change receives a "read-only" command (cat, ls, etc) then the response will differ from that of a write command. Common sense stuff that should have been addressed long ago.
Need to look at how PowerShell does it and implement a similar scheme. This is the reason the method cliGetPath was implemented in the beginning. Or maybe use REST verbs as attributes in the pathCmd method and get rid of the cliGetPath method in favor of this.
The text was updated successfully, but these errors were encountered:
The cat function in the DRP shell is used to retrieve data, but it also triggers the execution of functions which mimic directories. The problem is that cat also triggers functions which cause change. Need to come up with a way to differentiate between functions which mimic directories and those which do not. If a function capable of change receives a "read-only" command (cat, ls, etc) then the response will differ from that of a write command. Common sense stuff that should have been addressed long ago.
Need to look at how PowerShell does it and implement a similar scheme. This is the reason the method cliGetPath was implemented in the beginning. Or maybe use REST verbs as attributes in the pathCmd method and get rid of the cliGetPath method in favor of this.
The text was updated successfully, but these errors were encountered: