is there a nice way for the `beforeExecuting` entr...
# sdf
d
is there a nice way for the
beforeExecuting
entry point to know what the current projectFolder is (typically "src")? I know there's
options.projectPath
, but that doesn't include the actual project folder
👀 1
furthermore, can I access the Account Type or Account ID that is currently being used?
e
suitecloud.config.js
is just a normal JS file. You could declare
"src"
or whatever your path is as a
const
in the file and reference the
const
for both
defaultProjectFolder
and in your
commands
I'm not sure if SDF exposes any further context information. You could log out the full
options
Object (the argument to your command) to see if there's anything interesting there. It might get passed in as
options.arguments.account
for most operations
d
yeah, will do it that way. For project:deploy, options seems to only contain:
Copy code
command: 'project:deploy',
projectPath: 'C:\\...\\project',
arguments: { authid: undefined }
e
shame; at least you could parse the path from
projectPath
then, but I'd probably just fix it with a
const
d
this is promising