Skip to content

Commit

Permalink
Lab #15
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Oct 7, 2024
1 parent 4229c73 commit 72db3d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/my-plugin/src/executors/echo/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PromiseExecutor } from '@nx/devkit';
import { EchoExecutorSchema } from './schema';

const runExecutor: PromiseExecutor<EchoExecutorSchema> = async (options) => {
console.log('Executor ran for Echo', options);
console.log(options.value);
return {
success: true,
};
Expand Down
4 changes: 3 additions & 1 deletion tools/my-plugin/src/executors/echo/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export interface EchoExecutorSchema {} // eslint-disable-line
export interface EchoExecutorSchema {
value: string;
}
11 changes: 10 additions & 1 deletion tools/my-plugin/src/executors/echo/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
"title": "Echo executor",
"description": "",
"type": "object",
"properties": {},
"properties": {
"value": {
"type": "string",
"description": "The value to echo.",
"$default": {
"$source": "argv",
"index": 0
}
}
},
"required": []
}

0 comments on commit 72db3d8

Please sign in to comment.