Skip to content

Commit

Permalink
fix: update command template
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Jul 21, 2022
1 parent fb78388 commit 5a4ff50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/src/command.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';

Messages.importMessagesDirectory(__dirname);
const messages = Messages.loadMessages('<%- pluginName %>', '<%- messageFile %>');
const messages = Messages.load('<%- pluginName %>', '<%- messageFile %>', [
'summary',
'description',
'examples',
'flags.name.description',
]);

export type <%- returnType %> = {
path: string;
Expand Down

0 comments on commit 5a4ff50

Please sign in to comment.