-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic communication between talon and the extension for the tutorial
- Loading branch information
Cedric Halbronn
committed
Dec 13, 2023
1 parent
6ecaf87
commit 016e4d8
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// import { readFile, writeFile } from "fs/promises"; | ||
// import { parse } from "node-html-parser"; | ||
// import produce from "immer"; | ||
// import { sortBy } from "lodash"; | ||
// import { ide } from "../singletons/ide.singleton"; | ||
// import path from "path"; | ||
// import { getCursorlessRepoRoot } from "@cursorless/common"; | ||
|
||
import { Dictionary } from "lodash"; | ||
|
||
/** | ||
* The argument expected by the tutorial command. | ||
*/ | ||
interface TutorialCommandArg { | ||
/** | ||
* The version of the tutorial command. | ||
*/ | ||
version: 0; | ||
|
||
/** | ||
* A representation of the yaml file | ||
*/ | ||
stepFixture: Dictionary<string>; | ||
} | ||
|
||
export async function tutorialCreate({ | ||
version, | ||
stepFixture, | ||
}: TutorialCommandArg) { | ||
if (version !== 0) { | ||
throw new Error(`Unsupported tutorial api version: ${version}`); | ||
} | ||
|
||
return stepFixture; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters