From 75aeac414fde5e566e379fc4030b5124d172e9a6 Mon Sep 17 00:00:00 2001 From: babakfp Date: Tue, 15 Oct 2024 03:18:19 +0330 Subject: [PATCH] Added lgos to docs --- .github/assets/clack-logs.png | Bin 0 -> 8132 bytes packages/prompts/README.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/assets/clack-logs.png diff --git a/.github/assets/clack-logs.png b/.github/assets/clack-logs.png new file mode 100644 index 0000000000000000000000000000000000000000..9ff45a8c9ce750089d13807a528ec40e7655f946 GIT binary patch literal 8132 zcmdT}XH-+$y4}d3ABt3^h>9Kr1Vlij7X<{RM*`ACKtXD#p@ZNNDJmeH&=Ux~*8nPT z2nLWU9R)&(5PIl&8}I#b-yOG{H^v*U{7AC*8d+Fa7T(sR=T0Klkq z@2(*LoS_8(iZEJguq8rSUIqN2fEjA40j0gX%izr~4yrn;08kOfaAZRT-qX3=Glc;F z)5p^fMVBk;2>|e$YTZ?Z_*$+`1wT(Ch0bim5t4N@EgfnLQQJ$@_;>L>e9Vefbn{Kx zghUr8UFr+!TaM>;IwAyX3?5~~uy5YB(}#Q-{0>{>ZTf@eJjLX*b;zgtf}w9+GrWAt z-KxH*VVXP$*SB>w9CvRPDJR=MNmbDPuE@NfD7x$<@45L0MVRyHdW2O#T-d?JNQV zk2$KC0YJZ#9-Lq~3%C(&Y8SydF@%C&*MIrXjrW~{nAIE}rNkzmzkUl{QG0<;Cbx(x zenoMh5U+CyrXsAXTxfA@WDhCP&6nhh!o?PrEWWn_w+tN_7rHKgpot64iwigsfRp(W z1h{*p%r{n0JXo>>Y#8KcOqM%Ji=%G4Wub9ZYC(RENW5lJvUVBoO*IfL{v zo72oEY*juy4a7sqmxkQjh@m}w?PG_nwTk3ao~f>agJFcW(1MF#rFvoVFrDOX?a3S$ zR`1Jns{U7ZenP{pf+Er(|K4Ow+-8D0y$5d<1E9iaHc=~vr6OOm+9I*O zo#w7@#9IsHv1uFMomeinhxqiWM5rfSNf6_NK=i+%WZf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-L|1WzzfXsDwZESsR$H&y{otv@8IvUT^7rSBatO`4A1}D-gLY zyH)=v8AG6LrP>?HVq9o_Cqr#|HNx~eXbZy6($<-J7~S>oz#goNi-DMEc)R1Y+Wb3i tc3NZRC-$M>0a2S{`~RgX6JnP~W+tEQD}Bdh*9tBL&{EgETdHOq_8(4|?a%-K literal 0 HcmV?d00001 diff --git a/packages/prompts/README.md b/packages/prompts/README.md index 9e8b5bf8..363b27c7 100644 --- a/packages/prompts/README.md +++ b/packages/prompts/README.md @@ -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)