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
Currently, it is not very well documented, but the options bag passed to the class constructor at initialization requires that a String be supplied for the location of the destination directory for the files/folders imported from upstream repos.
Firstly, rather than simply expecting a String, the type should be narrowed to perhaps only accept a valid filesystem path.
In the event that this field is omitted, such as in the case where the user may not necessarily be interested in the file(s) or may not have a particular preference where files are stored, a smart default for the canonical temporary directory should be used.
For Node.js environments with node:os core module available, the value returned by the os.tmpdir() method may be useful to consider. In the case of browser environments, the Window.sessionStorage() Web API may be of interest.
The text was updated successfully, but these errors were encountered:
DerekNonGeneric
changed the title
[feature] support default value for destination field of options object
[feature request] support default value for destination in options bag
Jul 22, 2022
In the event that this field is omitted, such as in the case where the user may not necessarily be interested in the file(s) or may not have a particular preference where files are stored, a smart default for the canonical temporary directory should be used.
Currently, it is not very well documented, but the options bag passed to the class constructor at initialization requires that a String be supplied for the location of the destination directory for the files/folders imported from upstream repos.
Firstly, rather than simply expecting a String, the type should be narrowed to perhaps only accept a valid filesystem path.
In the event that this field is omitted, such as in the case where the user may not necessarily be interested in the file(s) or may not have a particular preference where files are stored, a smart default for the canonical temporary directory should be used.
For Node.js environments with
node:os
core module available, the value returned by theos.tmpdir()
method may be useful to consider. In the case of browser environments, theWindow.sessionStorage()
Web API may be of interest.The text was updated successfully, but these errors were encountered: