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 11# mycoder
22
3+ ## 0.0.18
4+
5+ ### Patch Changes
6+
7+ - better fix for linux cli that still hides deprecations
8+
39## 0.0.17
410
511### 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 11{
22 "name" : " mycoder" ,
33 "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 " ,
55 "type" : " module" ,
66 "bin" : " ./bin/cli.js" ,
77 "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" ;
44
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