File tree Expand file tree Collapse file tree 12 files changed +136
-77
lines changed Expand file tree Collapse file tree 12 files changed +136
-77
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ jobs:
209
209
uses : actions/download-artifact@v4
210
210
with :
211
211
name : bindings-${{ matrix.settings.target }}
212
- path : .
212
+ path : ./@noctisynth/
213
213
- name : List packages
214
214
run : ls -R .
215
215
shell : bash
@@ -239,7 +239,7 @@ jobs:
239
239
uses : actions/download-artifact@v4
240
240
with :
241
241
name : bindings-x86_64-unknown-linux-gnu
242
- path : .
242
+ path : ./@noctisynth/
243
243
- name : List packages
244
244
run : ls -R .
245
245
shell : bash
@@ -271,7 +271,7 @@ jobs:
271
271
uses : actions/download-artifact@v4
272
272
with :
273
273
name : bindings-x86_64-unknown-linux-musl
274
- path : .
274
+ path : ./@noctisynth/
275
275
- name : List packages
276
276
run : ls -R .
277
277
shell : bash
@@ -294,7 +294,7 @@ jobs:
294
294
uses : actions/download-artifact@v4
295
295
with :
296
296
name : bindings-aarch64-unknown-linux-gnu
297
- path : .
297
+ path : ./@noctisynth/
298
298
- name : List packages
299
299
run : ls -R .
300
300
shell : bash
@@ -328,7 +328,7 @@ jobs:
328
328
uses : actions/download-artifact@v4
329
329
with :
330
330
name : bindings-aarch64-unknown-linux-musl
331
- path : .
331
+ path : ./@noctisynth/
332
332
- name : List packages
333
333
run : ls -R .
334
334
shell : bash
@@ -367,7 +367,7 @@ jobs:
367
367
uses : actions/download-artifact@v4
368
368
with :
369
369
name : bindings-armv7-unknown-linux-gnueabihf
370
- path : .
370
+ path : ./@noctisynth/
371
371
- name : List packages
372
372
run : ls -R .
373
373
shell : bash
Original file line number Diff line number Diff line change 1
1
# archons
2
2
3
- Fast and elegant CLI build tool based on clap-rs
3
+ Fast, powerful and elegant CLI build tool based on clap-rs
4
4
5
5
## Installation
6
6
7
7
``` bash
8
- npm install -g clap-js
8
+ npm install -g archons
9
9
```
10
10
11
11
## Usage
12
12
13
- Look at [ simple.js ] ( ./simple.js ) for an example.
13
+ Look at [ Examples ] ( ./examples ) for an example.
14
14
15
15
See [ clap-rs] ( https://github.com/clap-rs/clap ) for more information.
Original file line number Diff line number Diff line change 1
1
import { Bench } from 'tinybench'
2
2
3
- import { plus100 } from '../index.js'
4
-
5
- function add ( a : number ) {
6
- return a + 100
7
- }
8
-
9
3
const b = new Bench ( )
10
4
11
5
b . add ( 'Native a + 100' , ( ) => {
12
- plus100 ( 10 )
6
+
13
7
} )
14
8
15
9
b . add ( 'JavaScript a + 100' , ( ) => {
16
- add ( 10 )
10
+
17
11
} )
18
12
19
13
await b . run ( )
Original file line number Diff line number Diff line change 10
10
" napi" ,
11
11
" noctisynth" ,
12
12
" oxlint" ,
13
+ " parens" ,
13
14
" prebuild" ,
14
15
" taplo" ,
15
16
" tinybench"
Original file line number Diff line number Diff line change
1
+ * .cjs
Original file line number Diff line number Diff line change 1
- const { defineCommand, run } = require ( '. /index.js' )
1
+ import { defineCommand , run , type Context } from '.. /index' ;
2
2
3
3
const dev = defineCommand ( {
4
4
meta : {
@@ -12,7 +12,7 @@ const dev = defineCommand({
12
12
default : '3000' ,
13
13
} ,
14
14
} ,
15
- callback : ( ctx ) => {
15
+ callback : ( ctx : Context ) => {
16
16
console . log ( ctx ) ;
17
17
}
18
18
} )
@@ -22,7 +22,7 @@ const main = defineCommand({
22
22
name : 'simple' ,
23
23
version : '0.0.1' ,
24
24
about : 'A simple command line tool' ,
25
- alias : [ 'dev' ]
25
+ styled : true ,
26
26
} ,
27
27
options : {
28
28
verbose : {
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "moduleResolution" : " NodeNext" ,
5
+ "module" : " NodeNext" ,
6
+ "outDir" : " ."
7
+ },
8
+ "include" : [" ." ],
9
+ "exclude" : [" index.cjs" ]
10
+ }
11
+
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ export interface CommandMeta {
26
26
* This is optional and can be used to display the version of the CLI
27
27
* when the command is called with the `--version` flag or `-V` option.
28
28
*
29
- * This option will be ignored if the command is subcommand.
29
+ * If not provided, the CLI will not display the version and you can't
30
+ * call the command with the `--version` flag or `-V` option.
30
31
*/
31
32
version ?: string
32
33
/**
@@ -35,6 +36,12 @@ export interface CommandMeta {
35
36
* Command description will be displayed in the help output.
36
37
*/
37
38
about ?: string
39
+ /**
40
+ * Enable styled mode
41
+ *
42
+ * Determines whether the CLI output should be displayed in the styled format.
43
+ */
44
+ styled ?: boolean
38
45
}
39
46
export interface CommandOption {
40
47
type ?: 'positional' | 'flag' | 'option'
You can’t perform that action at this time.
0 commit comments