| title | abbreviations |
|---|---|
Usage |
NYI="Not Yet Implemented" |
A .sus file's syntax can be checked by entering the following command:
$ spark parse path/to/card.sus
spark will exit...
- ... with exit code 0 to show that the file is syntactically correct
- ... with a non 0 exit code to show that the file contains a syntax error and give some indication as to where the error is.
spark will try its best to present you with a good indication of what went wrong but as with all parsers, errors can still seem cryptic.
Note that the parser will not follow spark declarations in the file. It's just a parser.
Compile a spark card.
This, unlike deployment, happens independtly of the system that spark is being run on.
$ spark compile path/to/card.sus
$ spark compile "path/to/card.sus card-name"
Note that the quotes are required if you specify a card name. This will compile the spark card to a list of deployments.
--output FILEoutput to aFILEinstead of stdout.--kind KIND: Specify any unspecified deployments (->) to beKINDdeployments (c->orl->). (Options forKIND:copy,link)--override KIND: Override all deployments to beKINDdeployments. (Options forKIND:copy,link)
Bake a spark card. This turns raw compiled deployments into so-called baked deployments.
$ spark bake path/to/card.sus
$ spark bake "path/to/card.sus card-name"
Diagnose the current state of the system.
This outputs the raw state of the system.
You probably want to use spark check instead.
$ spark diagnose path/to/card.sus
$ spark diagnose "path/to/card.sus card-name"
Assess the current state of the system. Look at what is done already and what needs to be done for a given card to be deployed
You can reference a starting card by file:
$ spark check path/to/card.sus
$ spark check "path/to/card.sus card-name"
Note that the quotes are required if you specify a card name.
You can also supply a compiled card:
$ spark check path/to/compiled/card
Don't use the .sus extension for compiled cards or spark will interpret them as uncompiled card files.
Deployment doesn't require any special commands, just a card reference.
You can reference a starting card by file:
$ spark deploy path/to/card.sus # By file
$ spark deploy "path/to/card.sus card-name" # By file with card name
Note that the quotes are required if you specify a card name.
You can also supply a compiled card:
$ spark deploy path/to/compiled/card
Don't use the .sus extension for compiled cards or spark will interpret them as uncompiled card files.
--replace-files: replace existing files at deploy destinations--replace-directories: replace existing directories at deploy destinations--replace-links: replace links at deploy destinations--replace-all: equivalent to--replace-files --replace-directories --replace-links