@manifest-configuration-language/language 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +2 -1
- package/reference/cli/mcl.md +27 -0
- package/reference/cli/mcl_check.md +19 -0
- package/reference/cli/mcl_completion.md +26 -0
- package/reference/cli/mcl_diff.md +19 -0
- package/reference/cli/mcl_explain.md +25 -0
- package/reference/cli/mcl_fmt.md +20 -0
- package/reference/cli/mcl_lint.md +19 -0
- package/reference/cli/mcl_lsp.md +18 -0
- package/reference/cli/mcl_render.md +26 -0
- package/reference/cli/mcl_update.md +18 -0
- package/reference/cli/mcl_version.md +18 -0
- package/reference/stdlib-functions.md +25 -0
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
`@manifest-configuration-language/language` contains the MCL TextMate grammar and a Lezer-backed CodeMirror `LanguageSupport` export with standard bracket completion.
|
|
4
4
|
|
|
5
|
+
The matching MCL release's CLI and standard-library reference Markdown is included under `reference/`.
|
|
6
|
+
|
|
5
7
|
```js
|
|
6
8
|
import { mclLanguageSupport } from "@manifest-configuration-language/language";
|
|
7
9
|
import mclTextMateGrammar from "@manifest-configuration-language/language/textmate" with { type: "json" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifest-configuration-language/language",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "MCL TextMate grammar and CodeMirror language support.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"files": [
|
|
13
13
|
"src",
|
|
14
|
+
"reference",
|
|
14
15
|
"README.md"
|
|
15
16
|
],
|
|
16
17
|
"exports": {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## mcl
|
|
2
|
+
|
|
3
|
+
Manifest Configuration Language CLI
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
-h, --help help for mcl
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### SEE ALSO
|
|
16
|
+
|
|
17
|
+
* [mcl check](mcl_check.md) - Validate rendered resources
|
|
18
|
+
* [mcl completion](mcl_completion.md) - Generate shell completion scripts
|
|
19
|
+
* [mcl diff](mcl_diff.md) - Compare rendered resources
|
|
20
|
+
* [mcl explain](mcl_explain.md) - Explain a resource field and its source
|
|
21
|
+
* [mcl fmt](mcl_fmt.md) - Format an MCL source file
|
|
22
|
+
* [mcl lint](mcl_lint.md) - Report source diagnostics
|
|
23
|
+
* [mcl lsp](mcl_lsp.md) - Start the Language Server Protocol server
|
|
24
|
+
* [mcl render](mcl_render.md) - Render Kubernetes resources
|
|
25
|
+
* [mcl update](mcl_update.md) - Update external dependencies and lock data
|
|
26
|
+
* [mcl version](mcl_version.md) - Print build version information
|
|
27
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## mcl check
|
|
2
|
+
|
|
3
|
+
Validate rendered resources
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl check <file> [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
-h, --help help for check
|
|
13
|
+
--operation string operation to check
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### SEE ALSO
|
|
17
|
+
|
|
18
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
19
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## mcl completion
|
|
2
|
+
|
|
3
|
+
Generate shell completion scripts
|
|
4
|
+
|
|
5
|
+
### Synopsis
|
|
6
|
+
|
|
7
|
+
Generate a completion script for the specified shell. Supported shells are bash, zsh, fish, and powershell.
|
|
8
|
+
|
|
9
|
+
Examples:
|
|
10
|
+
mcl completion bash > mcl-completion.bash
|
|
11
|
+
source <(mcl completion bash)
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
mcl completion <bash|zsh|fish|powershell> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Options
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
-h, --help help for completion
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### SEE ALSO
|
|
24
|
+
|
|
25
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
26
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## mcl diff
|
|
2
|
+
|
|
3
|
+
Compare rendered resources
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl diff <before-file> <after-file> [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
-h, --help help for diff
|
|
13
|
+
--operation string operation to compare
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### SEE ALSO
|
|
17
|
+
|
|
18
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
19
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## mcl explain
|
|
2
|
+
|
|
3
|
+
Explain a resource field and its source
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl explain <file> [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
--api-version string Kubernetes API version (required)
|
|
13
|
+
-h, --help help for explain
|
|
14
|
+
--kind string Kubernetes resource kind (required)
|
|
15
|
+
--name string Kubernetes resource name (required)
|
|
16
|
+
--namespace string Kubernetes namespace
|
|
17
|
+
--operation string operation to inspect
|
|
18
|
+
--path string JSON Pointer within the resource
|
|
19
|
+
--phase string lifecycle phase to inspect (default "main")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### SEE ALSO
|
|
23
|
+
|
|
24
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
25
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## mcl fmt
|
|
2
|
+
|
|
3
|
+
Format an MCL source file
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl fmt <file> [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
--check return an error when source is not formatted
|
|
13
|
+
-h, --help help for fmt
|
|
14
|
+
-w, --write write formatted source to the input file
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### SEE ALSO
|
|
18
|
+
|
|
19
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
20
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## mcl lint
|
|
2
|
+
|
|
3
|
+
Report source diagnostics
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl lint <file...> [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
--deny-warnings return an error when warnings are found
|
|
13
|
+
-h, --help help for lint
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### SEE ALSO
|
|
17
|
+
|
|
18
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
19
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## mcl render
|
|
2
|
+
|
|
3
|
+
Render Kubernetes resources
|
|
4
|
+
|
|
5
|
+
### Synopsis
|
|
6
|
+
|
|
7
|
+
Render one lifecycle phase or operation. --operation and --phase cannot be combined. --operation requires --output-dir.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
mcl render <file> [flags]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Options
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
--format string output format (yaml or json) (default "yaml")
|
|
17
|
+
-h, --help help for render
|
|
18
|
+
--operation string operation to render
|
|
19
|
+
--output-dir string directory for operation output files
|
|
20
|
+
--phase string lifecycle phase to render
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### SEE ALSO
|
|
24
|
+
|
|
25
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## mcl update
|
|
2
|
+
|
|
3
|
+
Update external dependencies and lock data
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
mcl update [file] [flags]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Options
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
-h, --help help for update
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### SEE ALSO
|
|
16
|
+
|
|
17
|
+
* [mcl](mcl.md) - Manifest Configuration Language CLI
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Standard library function reference
|
|
2
|
+
|
|
3
|
+
MCL version: `0.1.6`
|
|
4
|
+
|
|
5
|
+
Function names, modules, and parameter names are generated from the standard-library registry. Function behavior and type semantics are documented in the hand-written language reference.
|
|
6
|
+
|
|
7
|
+
| Module | Function | Parameters |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `std:core` | `len` | `value` |
|
|
10
|
+
| `std:core` | `replace` | `value` |
|
|
11
|
+
| `std:core` | `clone` | `value` |
|
|
12
|
+
| `std:list` | `contains` | `values`, `value` |
|
|
13
|
+
| `std:list` | `concat` | `first`, `second` |
|
|
14
|
+
| `std:list` | `union` | `first`, `second` |
|
|
15
|
+
| `std:list` | `replaceAt` | `values`, `index`, `value` |
|
|
16
|
+
| `std:list` | `mergeByKey` | `existing`, `overrides`, `key` |
|
|
17
|
+
| `std:list` | `map` | `values`, `transform` |
|
|
18
|
+
| `std:list` | `filter` | `values`, `predicate` |
|
|
19
|
+
| `std:list` | `exactlyOne` | `values`, `predicate` |
|
|
20
|
+
| `std:list` | `fold` | `values`, `initial`, `combine` |
|
|
21
|
+
| `std:map` | `keyOf` | `mapping`, `key` |
|
|
22
|
+
| `std:kustomize` | `build` | `source`, `revision`, `directory` |
|
|
23
|
+
| `std:manifest` | `load` | `source` |
|
|
24
|
+
| `std:helm` | `render` | `source`, `options` |
|
|
25
|
+
| `std:lifecycle` | `attach` | `value`, `events`, `priority`, `wait`, `cleanup` |
|