@parameterssyntax instructs Nota what values to pass to your script and in what order. The script receives them as arguments. Accessing them is dependent on the programming language you are using. For example, in Bash, it will be
@parametersshould be placed inside a comment that doesn't include anything else.
- When passing multiple arguments, you should separate them with spaces (e.g.
@parameters file workspace).
- All extensions support the
file(the path to the currently opened file) and the
workspace(the path to the currently opened workspace) parameters. Additionally, each type of extension may have additional parameters.
#!/bin/bash # @parameters file workspace
#!/usr/bin/env node // @parameters file workspace