Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ tweak: add logo when calling flags #24

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions source/cli.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env node
import React from 'react';
import {render} from 'ink';
import meow from 'meow';
import App from './app.js';
import Logo from './utils/logo.js';
import { render } from 'ink';

render(<Logo />, {patchConsole: false});

const cli = meow(
`
Usage
`Usage
$ magicc

Options
Expand All @@ -33,4 +35,4 @@ const cli = meow(
},
);

render(<App flags={cli.flags}/>);
render(<App flags={cli.flags} />, {patchConsole: false});
54 changes: 27 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -602,20 +602,20 @@ __metadata:
linkType: hard

"@types/node@npm:*":
version: 22.7.5
resolution: "@types/node@npm:22.7.5"
version: 22.7.6
resolution: "@types/node@npm:22.7.6"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10c0/cf11f74f1a26053ec58066616e3a8685b6bcd7259bc569738b8f752009f9f0f7f85a1b2d24908e5b0f752482d1e8b6babdf1fbb25758711ec7bb9500bfcd6e60
checksum: 10c0/d4406a63afce981c363fb1d1954aaf1759ad2d487c0833ebf667565ea4e45ff217d6fab4b5343badbdeccdf9d2e4a0841d633e0c929ceabcb33c288663dd0c73
languageName: node
linkType: hard

"@types/node@npm:^18.11.18":
version: 18.19.55
resolution: "@types/node@npm:18.19.55"
version: 18.19.56
resolution: "@types/node@npm:18.19.56"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10c0/19ffeca0086b45cba08d4585623cd0d80fbacb659debde82a4baa008fc0c25ba6c21cd721f3a9f0be74f70940694b00458cac61c89f8b2a1e55ca4322a9aad2b
checksum: 10c0/4cc4a6e9051d2d4458bfef4cbaee3c5f920dd318f6e940a5e0c378b1b2ec5e716d0973a406270cc51096a682069524d8a5aeee02046d4430addf56f41af47375
languageName: node
linkType: hard

Expand Down Expand Up @@ -817,11 +817,11 @@ __metadata:
linkType: hard

"acorn@npm:^8.11.0, acorn@npm:^8.8.2, acorn@npm:^8.9.0":
version: 8.12.1
resolution: "acorn@npm:8.12.1"
version: 8.13.0
resolution: "acorn@npm:8.13.0"
bin:
acorn: bin/acorn
checksum: 10c0/51fb26cd678f914e13287e886da2d7021f8c2bc0ccc95e03d3e0447ee278dd3b40b9c57dc222acd5881adcf26f3edc40901a4953403232129e3876793cd17386
checksum: 10c0/f35dd53d68177c90699f4c37d0bb205b8abe036d955d0eb011ddb7f14a81e6fd0f18893731c457c1b5bd96754683f4c3d80d9a5585ddecaa53cdf84e0b3d68f7
languageName: node
linkType: hard

Expand Down Expand Up @@ -1377,9 +1377,9 @@ __metadata:
linkType: hard

"caniuse-lite@npm:^1.0.30001663":
version: 1.0.30001668
resolution: "caniuse-lite@npm:1.0.30001668"
checksum: 10c0/247b3200aeec55038f3a11f3e6ab66f656c54d30df7b01d8d447efaba9af96ad3e17128da2ddd42ddc9cb6c286bac65b634a20955b3cc6619be7ca4601fddc8e
version: 1.0.30001669
resolution: "caniuse-lite@npm:1.0.30001669"
checksum: 10c0/f125f23440d3dbb6c25ffb8d55f4ce48af36a84d0932b152b3b74f143a4170cbe92e02b0a9676209c86609bf7bf34119ff10cc2bc7c1b7ea40e936cc16598408
languageName: node
linkType: hard

Expand Down Expand Up @@ -1931,9 +1931,9 @@ __metadata:
linkType: hard

"electron-to-chromium@npm:^1.5.28":
version: 1.5.36
resolution: "electron-to-chromium@npm:1.5.36"
checksum: 10c0/cd8d0de7801107f2b2744b5b18641c969a49b0503996cc1a586bb79d893020d0c4e916ac1935603eea65104b4fc1096bc339e0151531dca9e0f0ce0c1882e2d8
version: 1.5.41
resolution: "electron-to-chromium@npm:1.5.41"
checksum: 10c0/97b82383963029e6ed0bd7a71eb527f640c8cf658c9e43c776b0257b3c65e366590ac54135683a21e4474a156b8be78717d6e94d3c1def84b69f92bf48f2390f
languageName: node
linkType: hard

Expand Down Expand Up @@ -2796,9 +2796,9 @@ __metadata:
linkType: hard

"fast-uri@npm:^3.0.1":
version: 3.0.2
resolution: "fast-uri@npm:3.0.2"
checksum: 10c0/8cdd3da7b4022a037d348d587d55caff74b7e4f862bbdd2cc35c1e6e3f97d0aedb567894d44c57ee8798d3192cceb97dcf41dbdabfa07dd2842a0474a6c6eeef
version: 3.0.3
resolution: "fast-uri@npm:3.0.3"
checksum: 10c0/4b2c5ce681a062425eae4f15cdc8fc151fd310b2f69b1f96680677820a8b49c3cd6e80661a406e19d50f0c40a3f8bffdd458791baf66f4a879d80be28e10a320
languageName: node
linkType: hard

Expand Down Expand Up @@ -3052,9 +3052,9 @@ __metadata:
linkType: hard

"get-east-asian-width@npm:^1.0.0":
version: 1.2.0
resolution: "get-east-asian-width@npm:1.2.0"
checksum: 10c0/914b1e217cf38436c24b4c60b4c45289e39a45bf9e65ef9fd343c2815a1a02b8a0215aeec8bf9c07c516089004b6e3826332481f40a09529fcadbf6e579f286b
version: 1.3.0
resolution: "get-east-asian-width@npm:1.3.0"
checksum: 10c0/1a049ba697e0f9a4d5514c4623781c5246982bdb61082da6b5ae6c33d838e52ce6726407df285cdbb27ec1908b333cf2820989bd3e986e37bb20979437fdf34b
languageName: node
linkType: hard

Expand Down Expand Up @@ -5125,8 +5125,8 @@ __metadata:
linkType: hard

"openai@npm:^4.28.4":
version: 4.67.3
resolution: "openai@npm:4.67.3"
version: 4.68.0
resolution: "openai@npm:4.68.0"
dependencies:
"@types/node": "npm:^18.11.18"
"@types/node-fetch": "npm:^2.6.4"
Expand All @@ -5142,7 +5142,7 @@ __metadata:
optional: true
bin:
openai: bin/cli
checksum: 10c0/e52c0cbe774cec815023a83fe2058956f608d57546608459f033d4a1bfed6ca5b4b65385689857ed26bff904e21fb2b31ff206c31edf8af186f8811bc1052dfb
checksum: 10c0/57d25bddc4c1d75a1cd66c8ea8048afc0c874f99a8686a0b41ce3bc944916e99e7aa60ff47b0f758b106c27d54014ba7a0c75a67f7fcf1bf9928b9628ccb8749
languageName: node
linkType: hard

Expand Down Expand Up @@ -5364,9 +5364,9 @@ __metadata:
linkType: hard

"picocolors@npm:^1.0.0, picocolors@npm:^1.1.0":
version: 1.1.0
resolution: "picocolors@npm:1.1.0"
checksum: 10c0/86946f6032148801ef09c051c6fb13b5cf942eaf147e30ea79edb91dd32d700934edebe782a1078ff859fb2b816792e97ef4dab03d7f0b804f6b01a0df35e023
version: 1.1.1
resolution: "picocolors@npm:1.1.1"
checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
languageName: node
linkType: hard

Expand Down