@@ -76,6 +76,7 @@ describe("buildCommand", () => {
7676 test ( "builds a valid command object" , ( ) => {
7777 const command = buildCommand ( {
7878 docs : { brief : "Test command" } ,
79+ auth : false ,
7980 parameters : {
8081 flags : {
8182 verbose : { kind : "boolean" , brief : "Verbose" , default : false } ,
@@ -91,6 +92,7 @@ describe("buildCommand", () => {
9192 test ( "handles commands with empty parameters" , ( ) => {
9293 const command = buildCommand ( {
9394 docs : { brief : "Simple command" } ,
95+ auth : false ,
9496 parameters : { } ,
9597 async * func ( ) {
9698 // no-op
@@ -128,6 +130,7 @@ describe("buildCommand telemetry integration", () => {
128130 TestContext
129131 > ( {
130132 docs : { brief : "Test" } ,
133+ auth : false ,
131134 parameters : {
132135 flags : {
133136 verbose : { kind : "boolean" , brief : "Verbose" , default : false } ,
@@ -168,6 +171,7 @@ describe("buildCommand telemetry integration", () => {
168171 test ( "skips false boolean flags in telemetry" , async ( ) => {
169172 const command = buildCommand < { json : boolean } , [ ] , TestContext > ( {
170173 docs : { brief : "Test" } ,
174+ auth : false ,
171175 parameters : {
172176 flags : {
173177 json : { kind : "boolean" , brief : "JSON output" , default : false } ,
@@ -199,6 +203,7 @@ describe("buildCommand telemetry integration", () => {
199203
200204 const command = buildCommand < Record < string , never > , [ string ] , TestContext > ( {
201205 docs : { brief : "Test" } ,
206+ auth : false ,
202207 parameters : {
203208 positional : {
204209 kind : "tuple" ,
@@ -236,6 +241,7 @@ describe("buildCommand telemetry integration", () => {
236241
237242 const command = buildCommand < Record < string , never > , [ ] , TestContext > ( {
238243 docs : { brief : "Test" } ,
244+ auth : false ,
239245 parameters : { } ,
240246 // biome-ignore lint/correctness/useYield: test command — no output to yield
241247 async * func ( this : TestContext ) {
@@ -261,6 +267,7 @@ describe("buildCommand telemetry integration", () => {
261267
262268 const command = buildCommand < { delay : number } , [ ] , TestContext > ( {
263269 docs : { brief : "Test" } ,
270+ auth : false ,
264271 parameters : {
265272 flags : {
266273 delay : {
@@ -371,6 +378,7 @@ describe("buildCommand", () => {
371378 test ( "builds a valid command object" , ( ) => {
372379 const command = buildCommand ( {
373380 docs : { brief : "Test command" } ,
381+ auth : false ,
374382 parameters : {
375383 flags : {
376384 json : { kind : "boolean" , brief : "JSON output" , default : false } ,
@@ -388,6 +396,7 @@ describe("buildCommand", () => {
388396
389397 const command = buildCommand < { json : boolean } , [ ] , TestContext > ( {
390398 docs : { brief : "Test" } ,
399+ auth : false ,
391400 parameters : {
392401 flags : {
393402 json : { kind : "boolean" , brief : "JSON output" , default : false } ,
@@ -499,6 +508,7 @@ describe("buildCommand", () => {
499508
500509 const command = buildCommand < { limit : number } , [ ] , TestContext > ( {
501510 docs : { brief : "Test" } ,
511+ auth : false ,
502512 parameters : {
503513 flags : {
504514 limit : {
@@ -547,6 +557,7 @@ describe("buildCommand", () => {
547557 TestContext
548558 > ( {
549559 docs : { brief : "Test" } ,
560+ auth : false ,
550561 parameters : {
551562 flags : {
552563 verbose : {
@@ -603,6 +614,7 @@ describe("buildCommand", () => {
603614 try {
604615 const command = buildCommand < { verbose : boolean } , [ ] , TestContext > ( {
605616 docs : { brief : "Test" } ,
617+ auth : false ,
606618 parameters : {
607619 flags : {
608620 verbose : {
@@ -674,6 +686,7 @@ describe("buildCommand output config", () => {
674686 TestContext
675687 > ( {
676688 docs : { brief : "Test" } ,
689+ auth : false ,
677690 output : { human : ( ) => "unused" } ,
678691 parameters : {
679692 flags : {
@@ -717,6 +730,7 @@ describe("buildCommand output config", () => {
717730 TestContext
718731 > ( {
719732 docs : { brief : "Test" } ,
733+ auth : false ,
720734 output : { human : ( ) => "unused" } ,
721735 parameters : { } ,
722736 // biome-ignore lint/correctness/useYield: test command — no output to yield
@@ -756,6 +770,7 @@ describe("buildCommand output config", () => {
756770 TestContext
757771 > ( {
758772 docs : { brief : "Test" } ,
773+ auth : false ,
759774 output : { human : ( ) => "unused" } ,
760775 parameters : { } ,
761776 // biome-ignore lint/correctness/useYield: test command — no output to yield
@@ -794,6 +809,7 @@ describe("buildCommand output config", () => {
794809 TestContext
795810 > ( {
796811 docs : { brief : "Test" } ,
812+ auth : false ,
797813 output : { human : ( ) => "unused" } ,
798814 parameters : { } ,
799815 // biome-ignore lint/correctness/useYield: test command — no output to yield
@@ -858,6 +874,7 @@ describe("buildCommand output config", () => {
858874 TestContext
859875 > ( {
860876 docs : { brief : "Test" } ,
877+ auth : false ,
861878 output : { human : ( ) => "unused" } ,
862879 parameters : {
863880 flags : {
@@ -901,6 +918,7 @@ describe("buildCommand output config", () => {
901918 TestContext
902919 > ( {
903920 docs : { brief : "Test" } ,
921+ auth : false ,
904922 output : { human : ( ) => "unused" } ,
905923 parameters : { } ,
906924 // biome-ignore lint/correctness/useYield: test command — no output to yield
@@ -942,6 +960,7 @@ describe("buildCommand output config", () => {
942960 TestContext
943961 > ( {
944962 docs : { brief : "Test" } ,
963+ auth : false ,
945964 output : { human : ( ) => "unused" } ,
946965 parameters : {
947966 flags : {
@@ -996,6 +1015,7 @@ describe("buildCommand return-based output", () => {
9961015 TestContext
9971016 > ( {
9981017 docs : { brief : "Test" } ,
1018+ auth : false ,
9991019 output : {
10001020 human : ( d : { name : string ; role : string } ) => `${ d . name } (${ d . role } )` ,
10011021 } ,
@@ -1024,6 +1044,7 @@ describe("buildCommand return-based output", () => {
10241044 TestContext
10251045 > ( {
10261046 docs : { brief : "Test" } ,
1047+ auth : false ,
10271048 output : {
10281049 human : ( d : { name : string ; role : string } ) => `${ d . name } (${ d . role } )` ,
10291050 } ,
@@ -1053,6 +1074,7 @@ describe("buildCommand return-based output", () => {
10531074 TestContext
10541075 > ( {
10551076 docs : { brief : "Test" } ,
1077+ auth : false ,
10561078 output : {
10571079 human : ( d : { id : number ; name : string ; role : string } ) => `${ d . name } ` ,
10581080 } ,
@@ -1084,6 +1106,7 @@ describe("buildCommand return-based output", () => {
10841106 const makeCommand = ( ) =>
10851107 buildCommand < { json : boolean ; fields ?: string [ ] } , [ ] , TestContext > ( {
10861108 docs : { brief : "Test" } ,
1109+ auth : false ,
10871110 output : {
10881111 human : ( d : { value : number } ) => `Value: ${ d . value } ` ,
10891112 } ,
@@ -1131,6 +1154,7 @@ describe("buildCommand return-based output", () => {
11311154 TestContext
11321155 > ( {
11331156 docs : { brief : "Test" } ,
1157+ auth : false ,
11341158 output : {
11351159 human : ( ) => "unused" ,
11361160 } ,
@@ -1188,6 +1212,7 @@ describe("buildCommand return-based output", () => {
11881212 TestContext
11891213 > ( {
11901214 docs : { brief : "Test" } ,
1215+ auth : false ,
11911216 output : {
11921217 human : ( d : { name : string } ) => `Hello, ${ d . name } !` ,
11931218 } ,
@@ -1218,6 +1243,7 @@ describe("buildCommand return-based output", () => {
12181243 TestContext
12191244 > ( {
12201245 docs : { brief : "Test" } ,
1246+ auth : false ,
12211247 output : {
12221248 human : ( d : Array < { id : number } > ) => d . map ( ( ( x ) => x . id ) . join ( ", " ) ) ,
12231249 } ,
@@ -1247,6 +1273,7 @@ describe("buildCommand return-based output", () => {
12471273 const makeCommand = ( ) =>
12481274 buildCommand < { json : boolean ; fields ?: string [ ] } , [ ] , TestContext > ( {
12491275 docs : { brief : "Test" } ,
1276+ auth : false ,
12501277 output : {
12511278 human : ( d : { org : string } ) => `Org: ${ d . org } ` ,
12521279 } ,
@@ -1285,6 +1312,7 @@ describe("buildCommand return-based output", () => {
12851312 TestContext
12861313 > ( {
12871314 docs : { brief : "Test" } ,
1315+ auth : false ,
12881316 output : {
12891317 human : ( d : { error : string } ) => `Error: ${ d . error } ` ,
12901318 } ,
@@ -1333,6 +1361,7 @@ describe("buildCommand return-based output", () => {
13331361 TestContext
13341362 > ( {
13351363 docs : { brief : "Test" } ,
1364+ auth : false ,
13361365 output : {
13371366 human : ( d : { error : string } ) => `Error: ${ d . error } ` ,
13381367 } ,
0 commit comments