Skip to content

Commit

Permalink
chore: fix schema snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Dec 2, 2024
1 parent 4b92b10 commit a4ebfcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 1 addition & 8 deletions schemas/agent-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
"$ref": "#/definitions/AgentPreviewResult",
"definitions": {
"AgentPreviewResult": {
"type": "object",
"properties": {
"path": {
"type": "string"
}
},
"required": ["path"],
"additionalProperties": false
"type": "null"
}
}
}
6 changes: 4 additions & 2 deletions src/commands/agent/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import { AgentPreviewReact } from '../../components/agent-preview-react.js';
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.preview');

export default class AgentPreview extends SfCommand<void> {
export type AgentPreviewResult = void;

export default class AgentPreview extends SfCommand<AgentPreviewResult> {
public static readonly summary = messages.getMessage('summary');
public static readonly description = messages.getMessage('description');
public static readonly examples = messages.getMessages('examples');
Expand All @@ -32,7 +34,7 @@ export default class AgentPreview extends SfCommand<void> {
}),
};

public async run(): Promise<void> {
public async run(): Promise<AgentPreviewResult> {
const { flags } = await this.parse(AgentPreview);
this.log(`previewing ${flags.name}`);

Expand Down

0 comments on commit a4ebfcb

Please sign in to comment.