The Inso config file supports scripts, similar to NPM scripts defined in a
package.json file. These scripts can be executed by running
inso script <name>, or
inso <name>. Any options passed to this command will be forwarded to the script being executed.
name is required, and must be a script defined in the loaded configuration file.
The following commands work when running in the example git-repo directory with the sample yaml file.
lint: lint spec "Sample Specification"
gen-conf: generate config "Sample Specification"
gen-conf:k8s: gen-conf --type kubernetes
Run commands with or without the
If a conflict exists with another command (such as
lint), you must prefix the command with
inso script lint
inso lint # will not work
Any options passed during script execution will be forwarded to the script:
inso gen-conf # generates declarative config (default)
inso gen-conf:k8s # generates kubernetes config
inso gen-conf:k8s -t declarative # generates declarative config
inso gen-conf:k8s -o output.yaml # generates kubernetes config to output.yaml