File tree Expand file tree Collapse file tree 4 files changed +26
-12
lines changed Expand file tree Collapse file tree 4 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
1
# mycoder
2
2
3
+ ## 0.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - better fix for linux cli that still hides deprecations
8
+
3
9
## 0.0.17
4
10
5
11
### Patch Changes
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env node
2
- import "../dist/index.js" ;
1
+ #!/usr/bin/env -S node --no-deprecation
2
+ import "../dist/index.js" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mycoder" ,
3
3
"description" : " A command line tool using agent that can do arbitrary tasks, including coding tasks" ,
4
- "version" : " 0.0.17 " ,
4
+ "version" : " 0.0.18 " ,
5
5
"type" : " module" ,
6
6
"bin" : " ./bin/cli.js" ,
7
7
"main" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change 1
- import { expect , test , describe } from ' vitest'
2
- import { execSync } from ' child_process'
3
- import { version } from ' ../package.json'
1
+ import { expect , test , describe } from " vitest" ;
2
+ import { execSync } from " child_process" ;
3
+ import { version } from " ../package.json" ;
4
4
5
- describe ( 'CLI' , ( ) => {
6
- test ( 'version command outputs correct version' , ( ) => {
7
- const output = execSync ( 'node ./bin/cli.js --version' ) . toString ( )
8
- expect ( output . trim ( ) ) . toContain ( version )
9
- } )
10
- } )
5
+ describe ( "CLI" , ( ) => {
6
+ test ( "version command outputs correct version" , ( ) => {
7
+ const output = execSync ( "npx mycoder --version" ) . toString ( ) ;
8
+ expect ( output . trim ( ) ) . toContain ( version ) ;
9
+ expect ( output . trim ( ) ) . not . toContain ( "AI-powered coding assistant" ) ;
10
+ } ) ;
11
+
12
+ test ( "-h command outputs help" , ( ) => {
13
+ const output = execSync ( "npx mycoder -h" ) . toString ( ) ;
14
+ expect ( output . trim ( ) ) . toContain ( "Commands:" ) ;
15
+ expect ( output . trim ( ) ) . toContain ( "Positionals:" ) ;
16
+ expect ( output . trim ( ) ) . toContain ( "Options:" ) ;
17
+ } ) ;
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments