File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " magicc" ,
3- "version" : " 0.1.0 " ,
3+ "version" : " 0.0.1 " ,
44 "author" : " Waren Gonzaga" ,
55 "description" : " You can do `magicc`, you can build anything that you desire." ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -3,16 +3,18 @@ import {Text} from 'ink';
33import BigText from 'ink-big-text' ;
44import Gradient from 'ink-gradient' ;
55import getGitDiff from './utils/openai.js' ;
6+ import info from './utils/info.js' ;
67
78export default function App ( ) {
8- getGitDiff ( ) ;
9-
9+ // getGitDiff();
1010 return (
1111 < >
12- < Gradient name = "passion" >
13- < BigText text = "Magicc" />
12+ < Text color = 'yellow' > Note: Coming Soon... Follow @warengonzaga for updates</ Text >
13+ < Gradient name = 'passion' >
14+ < BigText text = 'Magicc' />
1415 < Text > You can do `magicc`, you can build anything that you desire. 🪄</ Text >
1516 </ Gradient >
17+ < Text > Version: < Text color = 'green' > { info ( 'version' ) } </ Text > | Author: < Text color = 'blue' > { info ( 'author' ) } </ Text > </ Text >
1618 </ >
1719 ) ;
1820}
Original file line number Diff line number Diff line change 1+ import packageJSON from '../../package.json' ;
2+
3+ const { author, version } = packageJSON ;
4+
5+ const info = ( info ) => {
6+ if ( info === 'version' ) {
7+ return version ;
8+ } else if ( info === 'author' ) {
9+ return author ;
10+ } else {
11+ return console . error ( 'Invalid info type' ) ;
12+ }
13+ }
14+
15+ export default info ;
You can’t perform that action at this time.
0 commit comments