File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
packages/cursorless-engine/src/core Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,20 @@ export class TutorialImpl implements Tutorial {
37
37
/**
38
38
* Handle the argument of a "%%step:cloneStateInk.yml%%""
39
39
*/
40
- private async processStep ( arg : string , tutorialName : string ) {
40
+ private async processStep ( yamlFilename : string , tutorialName : string ) {
41
41
const tutorialDir = path . join ( this . tutorialRootDir , tutorialName ) ;
42
42
if ( ! fs . existsSync ( tutorialDir ) ) {
43
43
throw new Error ( `Invalid tutorial name: ${ tutorialName } ` ) ;
44
44
}
45
45
46
- const yamlFile = path . join ( tutorialDir , arg ) ;
47
- if ( ! fs . existsSync ( yamlFile ) ) {
46
+ const yamlPath = path . join ( tutorialDir , yamlFilename ) ;
47
+ if ( ! fs . existsSync ( yamlPath ) ) {
48
48
throw new Error (
49
- `Can't file yaml file: ${ yamlFile } in tutorial name: ${ tutorialName } ` ,
49
+ `Can't file yaml file: ${ yamlPath } in tutorial name: ${ tutorialName } ` ,
50
50
) ;
51
51
}
52
- const yamlFilename = arg ;
53
52
54
- const buffer = await readFile ( yamlFile ) ;
53
+ const buffer = await readFile ( yamlPath ) ;
55
54
const fixture = yaml . load ( buffer . toString ( ) ) as TestCaseFixture ;
56
55
57
56
// command to be said for moving to the next step
You can’t perform that action at this time.
0 commit comments