File tree 10 files changed +385
-408
lines changed
10 files changed +385
-408
lines changed Original file line number Diff line number Diff line change 1
1
root = true
2
2
3
3
[* ]
4
- indent_style = space
5
- indent_size = 2
4
+ indent_style = tab
6
5
end_of_line = lf
7
6
charset = utf-8
8
7
trim_trailing_whitespace = true
9
8
insert_final_newline = true
9
+
10
+ [* .yml ]
11
+ indent_style = space
12
+ indent_size = 2
Original file line number Diff line number Diff line change 1
- * text =auto
2
- * .js text eol =lf
1
+ * text =auto eol =lf
Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ - push
4
+ - pull_request
5
+ jobs :
6
+ test :
7
+ name : Node.js ${{ matrix.node-version }}
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ node-version :
13
+ - 20
14
+ - 18
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ${{ matrix.node-version }}
20
+ - run : npm install
21
+ - run : npm test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
- 'use strict' ;
3
- const pkg = require ( './package.json' ) ;
4
- const yosay = require ( '.' ) ;
2
+ import meow from 'meow' ;
3
+ import yosay from './index.js' ;
5
4
6
- require ( 'taketalk' ) ( {
7
- init ( input , options ) {
8
- console . log ( yosay ( input , options ) ) ;
9
- } ,
10
- help ( ) {
11
- console . log ( `
12
- ${ pkg . description }
5
+ const cli = meow ( `
6
+ Usage
7
+ $ yosay <string>
8
+ $ yosay <string> --maxLength 8
9
+ $ echo <string> | yosay
13
10
14
- Usage
15
- $ yosay <string>
16
- $ yosay <string> --maxLength 8
17
- $ echo <string> | yosay
18
-
19
- Example
20
- $ yosay 'Sindre is a horse'
21
- ${ yosay ( 'Sindre is a horse' ) } ` ) ;
22
- } ,
23
- version : pkg . version
11
+ Example
12
+ $ yosay 'Sindre is a horse'
13
+ ${ yosay ( 'Sindre is a horse' ) }
14
+ ` , {
15
+ importMeta : import . meta,
24
16
} ) ;
17
+
18
+ console . log ( yosay ( cli . input [ 0 ] , cli . flags ) ) ;
You can’t perform that action at this time.
0 commit comments