When creating template files for the Oracle Cloud Stack Manager (PSM), I find it usefull to run the PSM Command Line Interface (PSM CLI) directly from my favorite editor Notepad++. Here is a short how-to.
The required plugins won't run with the 64bit version. Not an issue for me, as I never brought the 32bit version to the limits. Get it from the authors site:
https://notepad-plus-plus.org/download/v7.3.3.html
Not sure, if the newer distributions already come with it. If you don't have a menu item Plugins|Plugin Manager, get it from Sourceforge and install it: https://sourceforge.net/projects/npppluginmgr/
3. Install NppExec
Open Plugin Manager (Plugins|Plugin Manager|Show Plugin Manager), pick the NppExec Plugin from the list of available Plugins. After restart, it should be available.
With a PSM template open, hit F6 in Notepad++. Enter the following command for eg. PSM validation (adjust the path to your environment) and save it.
5. Re-run PSM validate while editing
Via CTRL-F6, the last command can be re-run, so just write your template and CTRL-F6 to validate it.
1. Install 32bit Notepad++
The required plugins won't run with the 64bit version. Not an issue for me, as I never brought the 32bit version to the limits. Get it from the authors site:
https://notepad-plus-plus.org/download/v7.3.3.html
2. Install the Notepad++ Plugin Manger
3. Install NppExec
Open Plugin Manager (Plugins|Plugin Manager|Show Plugin Manager), pick the NppExec Plugin from the list of available Plugins. After restart, it should be available.
4. Save a command for PSM CLI and run it
With a PSM template open, hit F6 in Notepad++. Enter the following command for eg. PSM validation (adjust the path to your environment) and save it.
D:\programme\python\Scripts\psm.cmd stack validate-template -f "$(FULL_CURRENT_PATH)"
5. Re-run PSM validate while editing
Via CTRL-F6, the last command can be re-run, so just write your template and CTRL-F6 to validate it.