@cplieger/deadset-ts 8.0.0-dev.12 → 8.0.0-dev.13
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/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/src/build-scripts.js +6 -13
- package/dist/src/commands/read.js +156 -0
- package/dist/src/commands/shell.js +75 -0
- package/dist/src/commands/tools.js +460 -0
- package/dist/src/configuration-files.js +11 -25
- package/dist/src/conformance-record.js +1 -1
- package/dist/src/dependencies.js +67 -115
- package/dist/src/load/synthesize.js +12 -5
- package/dist/src/manifest.js +27 -14
- package/dist/src/roots.js +18 -11
- package/dist/src/text/named-files.js +24 -3
- package/dist/src/text/yaml.js +464 -173
- package/dist/src/vendor/unbash/ansi-c.js +132 -0
- package/dist/src/vendor/unbash/arithmetic-parts.js +37 -0
- package/dist/src/vendor/unbash/arithmetic.js +591 -0
- package/dist/src/vendor/unbash/assignment.js +131 -0
- package/dist/src/vendor/unbash/chars.js +48 -0
- package/dist/src/vendor/unbash/command.js +41 -0
- package/dist/src/vendor/unbash/expansion.js +80 -0
- package/dist/src/vendor/unbash/glob.js +268 -0
- package/dist/src/vendor/unbash/heredoc.js +27 -0
- package/dist/src/vendor/unbash/internal-types.js +1 -0
- package/dist/src/vendor/unbash/lexer.js +4274 -0
- package/dist/src/vendor/unbash/limits.js +3 -0
- package/dist/src/vendor/unbash/parser.js +1366 -0
- package/dist/src/vendor/unbash/parts.js +57 -0
- package/dist/src/vendor/unbash/substitution-context.js +8 -0
- package/dist/src/vendor/unbash/traversal.js +212 -0
- package/dist/src/vendor/unbash/types.js +1 -0
- package/dist/src/vendor/unbash/word-value.js +61 -0
- package/dist/src/vendor/unbash/word.js +40 -0
- package/dist/src/workflow-steps.js +111 -133
- package/jsr.json +2 -1
- package/package.json +4 -2
- package/src/build-scripts.ts +6 -13
- package/src/commands/read.ts +230 -0
- package/src/commands/shell.ts +126 -0
- package/src/commands/tools.ts +618 -0
- package/src/configuration-files.ts +10 -26
- package/src/conformance-record.ts +1 -1
- package/src/dependencies.ts +99 -123
- package/src/load/synthesize.ts +18 -5
- package/src/manifest.ts +43 -25
- package/src/roots.ts +20 -13
- package/src/text/named-files.ts +26 -3
- package/src/text/yaml.ts +503 -179
- package/src/vendor/unbash/LICENSE +15 -0
- package/src/vendor/unbash/VENDORED.md +16 -0
- package/src/vendor/unbash/ansi-c.ts +132 -0
- package/src/vendor/unbash/arithmetic-parts.ts +53 -0
- package/src/vendor/unbash/arithmetic.ts +641 -0
- package/src/vendor/unbash/assignment.ts +163 -0
- package/src/vendor/unbash/chars.ts +48 -0
- package/src/vendor/unbash/command.ts +47 -0
- package/src/vendor/unbash/expansion.ts +144 -0
- package/src/vendor/unbash/glob.ts +284 -0
- package/src/vendor/unbash/heredoc.ts +34 -0
- package/src/vendor/unbash/internal-types.ts +94 -0
- package/src/vendor/unbash/lexer.ts +4352 -0
- package/src/vendor/unbash/limits.ts +3 -0
- package/src/vendor/unbash/parser.ts +1612 -0
- package/src/vendor/unbash/parts.ts +96 -0
- package/src/vendor/unbash/substitution-context.ts +20 -0
- package/src/vendor/unbash/traversal.ts +182 -0
- package/src/vendor/unbash/types.ts +660 -0
- package/src/vendor/unbash/word-value.ts +64 -0
- package/src/vendor/unbash/word.ts +50 -0
- package/src/workflow-steps.ts +153 -154
- package/dist/src/text/shell.js +0 -159
- package/src/text/named-files.inputs.json +0 -1522
- package/src/text/shell.ts +0 -161
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Code generated by scripts/vendor-unbash.ts from unbash 6.0.0 (968c14992a43dc06ce29c9f51858abd4a87851ea). DO NOT EDIT.
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import type { HereDocBody, WordPart } from "./internal-types.ts";
|
|
4
|
+
import { computeHereDocBodyParts } from "./parts.ts";
|
|
5
|
+
import type { SubstitutionContext } from "./substitution-context.ts";
|
|
6
|
+
|
|
7
|
+
export class HereDocBodyImpl implements HereDocBody {
|
|
8
|
+
type = "HereDocBody" as const;
|
|
9
|
+
pos: number;
|
|
10
|
+
end: number;
|
|
11
|
+
text = "";
|
|
12
|
+
#source: string;
|
|
13
|
+
#depth: number;
|
|
14
|
+
#context: SubstitutionContext;
|
|
15
|
+
#parts: WordPart[] | undefined | null;
|
|
16
|
+
|
|
17
|
+
constructor(source: string, pos: number, quoted: boolean, depth: number, context: SubstitutionContext) {
|
|
18
|
+
this.pos = pos;
|
|
19
|
+
this.end = pos;
|
|
20
|
+
this.#source = source;
|
|
21
|
+
this.#depth = depth;
|
|
22
|
+
this.#context = context;
|
|
23
|
+
this.#parts = quoted ? undefined : null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
get parts(): WordPart[] | undefined {
|
|
27
|
+
if (this.#parts === null) this.#parts = computeHereDocBodyParts(this.#source, this, this.#depth, this.#context);
|
|
28
|
+
return this.#parts;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
toJSON() {
|
|
32
|
+
return { type: this.type, pos: this.pos, end: this.end, text: this.text, parts: this.parts };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Code generated by scripts/vendor-unbash.ts from unbash 6.0.0 (968c14992a43dc06ce29c9f51858abd4a87851ea). DO NOT EDIT.
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import type * as Public from "./types.ts";
|
|
4
|
+
|
|
5
|
+
type Mutable<T> = { -readonly [K in keyof T]: Mutable<T[K]> };
|
|
6
|
+
|
|
7
|
+
export type Word = Mutable<Public.Word>;
|
|
8
|
+
export type LiteralPart = Mutable<Public.LiteralPart>;
|
|
9
|
+
export type GlobPart = Mutable<Public.GlobPart>;
|
|
10
|
+
export type StarGlobPart = Mutable<Public.StarGlobPart>;
|
|
11
|
+
export type QuestionGlobPart = Mutable<Public.QuestionGlobPart>;
|
|
12
|
+
export type BracketGlobPart = Mutable<Public.BracketGlobPart>;
|
|
13
|
+
export type SingleQuotedPart = Mutable<Public.SingleQuotedPart>;
|
|
14
|
+
export type DoubleQuotedPart = Mutable<Public.DoubleQuotedPart>;
|
|
15
|
+
export type AnsiCQuotedPart = Mutable<Public.AnsiCQuotedPart>;
|
|
16
|
+
export type LocaleStringPart = Mutable<Public.LocaleStringPart>;
|
|
17
|
+
export type SimpleExpansionPart = Mutable<Public.SimpleExpansionPart>;
|
|
18
|
+
export type ParameterExpansionPart = Mutable<Public.ParameterExpansionPart>;
|
|
19
|
+
export type ParameterDefaultOperation = Mutable<Public.ParameterDefaultOperation>;
|
|
20
|
+
export type ParameterRemoveOperation = Mutable<Public.ParameterRemoveOperation>;
|
|
21
|
+
export type ParameterReplaceOperation = Mutable<Public.ParameterReplaceOperation>;
|
|
22
|
+
export type ParameterSliceOperation = Mutable<Public.ParameterSliceOperation>;
|
|
23
|
+
export type ParameterCaseOperation = Mutable<Public.ParameterCaseOperation>;
|
|
24
|
+
export type ParameterTransformOperation = Mutable<Public.ParameterTransformOperation>;
|
|
25
|
+
export type ParameterNamesOperation = Mutable<Public.ParameterNamesOperation>;
|
|
26
|
+
export type ParameterUnknownOperation = Mutable<Public.ParameterUnknownOperation>;
|
|
27
|
+
export type ParameterOperation = Mutable<Public.ParameterOperation>;
|
|
28
|
+
export type CommandExpansionPart = Mutable<Public.CommandExpansionPart>;
|
|
29
|
+
export type ArithmeticExpansionPart = Mutable<Public.ArithmeticExpansionPart>;
|
|
30
|
+
export type ProcessSubstitutionPart = Mutable<Public.ProcessSubstitutionPart>;
|
|
31
|
+
export type ExtGlobOperator = Public.ExtGlobOperator;
|
|
32
|
+
export type ExtendedGlobPart = Mutable<Public.ExtendedGlobPart>;
|
|
33
|
+
export type BraceExpansionPart = Mutable<Public.BraceExpansionPart>;
|
|
34
|
+
export type ArithmeticExpression = Mutable<Public.ArithmeticExpression>;
|
|
35
|
+
export type ArithmeticBinary = Mutable<Public.ArithmeticBinary>;
|
|
36
|
+
export type ArithmeticUnary = Mutable<Public.ArithmeticUnary>;
|
|
37
|
+
export type ArithmeticTernary = Mutable<Public.ArithmeticTernary>;
|
|
38
|
+
export type ArithmeticGroup = Mutable<Public.ArithmeticGroup>;
|
|
39
|
+
export type ArithmeticWord = Mutable<Public.ArithmeticWord>;
|
|
40
|
+
export type ArithmeticCommandExpansion = Mutable<Public.ArithmeticCommandExpansion>;
|
|
41
|
+
export type DoubleQuotedChild = Mutable<Public.DoubleQuotedChild>;
|
|
42
|
+
export type WordPart = Mutable<Public.WordPart>;
|
|
43
|
+
export type Assignment = Mutable<Public.Assignment>;
|
|
44
|
+
export type ArrayValue = Mutable<Public.ArrayValue>;
|
|
45
|
+
export type AssignmentPrefix = Mutable<Public.AssignmentPrefix>;
|
|
46
|
+
export type CommandArgument = Mutable<Public.CommandArgument>;
|
|
47
|
+
export type RedirectOperator = Public.RedirectOperator;
|
|
48
|
+
export type Redirection = Mutable<Public.Redirection>;
|
|
49
|
+
export type RedirectDescriptor = Mutable<Public.RedirectDescriptor>;
|
|
50
|
+
export type Redirect = Mutable<Public.Redirect>;
|
|
51
|
+
export type HereString = Mutable<Public.HereString>;
|
|
52
|
+
export type HereDoc = Mutable<Public.HereDoc>;
|
|
53
|
+
export type HereDocDelimiter = Mutable<Public.HereDocDelimiter>;
|
|
54
|
+
export type HereDocBody = Mutable<Public.HereDocBody>;
|
|
55
|
+
export type Command = Mutable<Public.Command>;
|
|
56
|
+
export type Redirected = Mutable<Public.Redirected>;
|
|
57
|
+
export type CompoundCommand = Mutable<Public.CompoundCommand>;
|
|
58
|
+
export type PipeOperator = Public.PipeOperator;
|
|
59
|
+
export type CommandNode = Mutable<Public.CommandNode>;
|
|
60
|
+
export type PipelineNode = Mutable<Public.PipelineNode>;
|
|
61
|
+
export type Pipeline = Mutable<Public.Pipeline>;
|
|
62
|
+
export type PipelinePrefix = Mutable<Public.PipelinePrefix>;
|
|
63
|
+
export type Time = Mutable<Public.Time>;
|
|
64
|
+
export type Negation = Mutable<Public.Negation>;
|
|
65
|
+
export type LogicalOperator = Public.LogicalOperator;
|
|
66
|
+
export type AndOr = Mutable<Public.AndOr>;
|
|
67
|
+
export type If = Mutable<Public.If>;
|
|
68
|
+
export type Elif = Mutable<Public.Elif>;
|
|
69
|
+
export type For = Mutable<Public.For>;
|
|
70
|
+
export type WhileKind = Public.WhileKind;
|
|
71
|
+
export type While = Mutable<Public.While>;
|
|
72
|
+
export type Function = Mutable<Public.Function>;
|
|
73
|
+
export type Subshell = Mutable<Public.Subshell>;
|
|
74
|
+
export type BraceGroup = Mutable<Public.BraceGroup>;
|
|
75
|
+
export type CompoundList = Mutable<Public.CompoundList>;
|
|
76
|
+
export type Case = Mutable<Public.Case>;
|
|
77
|
+
export type CaseTerminator = Public.CaseTerminator;
|
|
78
|
+
export type CaseItem = Mutable<Public.CaseItem>;
|
|
79
|
+
export type Select = Mutable<Public.Select>;
|
|
80
|
+
export type Coproc = Mutable<Public.Coproc>;
|
|
81
|
+
export type ArithmeticFor = Mutable<Public.ArithmeticFor>;
|
|
82
|
+
export type TestExpression = Mutable<Public.TestExpression>;
|
|
83
|
+
export type TestUnaryExpression = Mutable<Public.TestUnaryExpression>;
|
|
84
|
+
export type TestBinaryExpression = Mutable<Public.TestBinaryExpression>;
|
|
85
|
+
export type TestLogicalExpression = Mutable<Public.TestLogicalExpression>;
|
|
86
|
+
export type TestNotExpression = Mutable<Public.TestNotExpression>;
|
|
87
|
+
export type TestGroupExpression = Mutable<Public.TestGroupExpression>;
|
|
88
|
+
export type TestCommand = Mutable<Public.TestCommand>;
|
|
89
|
+
export type ArithmeticCommand = Mutable<Public.ArithmeticCommand>;
|
|
90
|
+
export type Statement = Mutable<Public.Statement>;
|
|
91
|
+
export type SyntaxNode = Mutable<Public.SyntaxNode>;
|
|
92
|
+
export type Script = Mutable<Public.Script>;
|
|
93
|
+
export type ParsedScript = Mutable<Public.ParsedScript>;
|
|
94
|
+
export type ParseError = Mutable<Public.ParseError>;
|