Skip to content

Commit

Permalink
fix: expose styledHeader as func in sf command
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed Mar 8, 2022
1 parent 85cfe86 commit fd2dc48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sfCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ export abstract class SfCommand<T> extends Command {
this.ux.styledObject(obj);
}

/**
* Log stylized header to the console. Will automatically be suppressed when --json flag is present.
*/
public styledHeader(text: string): void {
this.ux.styledHeader(text);
}

/**
* Prompt user for information. See https://www.npmjs.com/package/inquirer for more.
*
Expand Down

0 comments on commit fd2dc48

Please sign in to comment.