mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Update README.md to mention ui.log
- added missing docs for ui.log
This commit is contained in:
parent
8a36066e81
commit
982e045ba4
@ -32,6 +32,15 @@ prettyCLI
|
||||
.parseAndExit();
|
||||
```
|
||||
|
||||
Pretty CLI also provides a common UI interface, providing log functions to output coloured messages to the UI:
|
||||
|
||||
```
|
||||
const ui = require('@tryghost/pretty-cli/ui');`
|
||||
|
||||
ui.log.info('Done');
|
||||
ui.log.warn('Uh Oh', 'Something went wrong');
|
||||
```
|
||||
|
||||
You can also grab a fresh instance of the api with `prettyCLI.Api.get()`.
|
||||
|
||||
The style rules used are available at `prettyCLI.styles`.
|
||||
|
Loading…
Reference in New Issue
Block a user