arguments
scope. Named parameters will be accessible as arguments.name
, and positional parameters as arguments[ 1 ]
, arguments.[ 2 ]
, etc.package set
that allows users to set any box.json property they want.resolvePath()
method that is available to all commands via the BaseCommand class. (This method wraps the resolvePath()
method of the fileSystemUtil
object that is injected into all commands.) The method resolvePath()
will make the file system path canonical and absolute. This ensures you have a fully qualified path to work with even if a user might passed a folder relative to their current working directory passed something like ../../
.C:\sandbox\testSite
, you would get that exact same path back as the output.C:\sandbox
directory and then ran the command with testsite
as the input, the relative path would now still resolve to C:\sandbox\testSite
.testsite/foo/bar/../../
, you would still get C:\sandbox\testSite
as the path.