Skip to content

Commit

Permalink
Added logs to docs (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Nov 22, 2024
2 parents ec4ec09 + 75aeac4 commit 04a17bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Binary file added .github/assets/clack-logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions packages/prompts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,18 @@ await p.tasks([
},
]);
```

### Logs

```js
import { log } from '@clack/prompts';

log.info('Info!');
log.success('Success!');
log.step('Step!');
log.warn('Warn!');
log.error('Error!');
log.message('Hello, World', { symbol: color.cyan('~') });
```

[clack-log-prompts](https://github.com/natemoo-re/clack/blob/main/.github/assets/clack-logs.png)

0 comments on commit 04a17bf

Please sign in to comment.