Skip to content

Commit

Permalink
Merge pull request #36 from salesforcecli/phale/styled-header
Browse files Browse the repository at this point in the history
fix: expose styledHeader as func in sf command
  • Loading branch information
peternhale authored Mar 8, 2022
2 parents 85cfe86 + fd2dc48 commit 00cf77e
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 00cf77e

Please sign in to comment.